/*
 * Public site chrome: tokens from live testerhead.ru /about/ and
 * /how-to-use/ (tester_style.css + page-about.php). WP jquery / spinner
 * are not copied. Landing and articles use other stylesheets.
 */
:root {
    --th-ink: #444444;
    --th-body: #333333;
    --th-link: #6a5d58;
    --th-accent: #E87400;
    --th-nav: #565555;
    --th-footer: #2c2c2c;
    --th-footer-text: #f8f6f5;
    --th-page: #ffffff;
    --th-box: #F5F5F5;
    --th-box-border: #E8E8E8;
    --th-header: #f5f5f5;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    background: var(--th-page);
    color: var(--th-body);
    font-family: "Open Sans", Verdana, Geneva, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}
a { color: var(--th-link); text-decoration: none; }
a:hover { color: var(--th-accent); }

.site-shell {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: var(--th-header);
    border-bottom: 1px solid var(--th-box-border);
}
.site-header__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 5px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}
.site-brand {
    display: flex;
    align-items: center;
    color: var(--th-nav);
    font-size: 20px;
    font-weight: 600;
}
.site-brand img {
    display: block;
    height: 42px;
    width: auto;
}
.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    flex: 1;
}
.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: var(--th-nav);
    font-size: 16px;
    text-transform: uppercase;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--th-accent); }
.site-nav__auth { margin-left: auto; }
.site-nav__auth a { color: var(--th-accent); font-weight: 600; }

.site-main {
    flex: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5px 48px;
}

.site-page {
    border: solid 2px var(--th-box-border);
    border-radius: 3px;
    background: var(--th-box);
    padding: 14px 10px 10px;
    margin: 0 0 5%;
}

.tester_title {
    background: url("/images/vernagir_ramka.png") center no-repeat;
    text-align: center;
    width: 100%;
    height: 56px;
    display: block;
    font-size: 27px;
    font-weight: 300;
    color: var(--th-ink);
    line-height: 35px;
    padding-top: 25px;
    margin: 0 0 20px;
}

.site-page p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--th-body);
    margin: 0;
    padding: 4px 10px 8px;
}
.about p {
    padding: 10px 10px 15px;
    margin: 0 0 25px;
}
.site-main img { max-width: 100%; height: auto; }

.about figure { margin: 0; }
.about img { display: block; }

.howto .howto-file {
    margin: 0 0 16px;
    padding: 10px 10px 8px;
}
.howto .howto-file a + a { margin-left: 12px; }
.howto video {
    max-width: 100%;
    height: auto;
    display: block;
}
.howto figure { margin: 8px 0 0; }

.legal-body {
    font-size: 16px;
    line-height: 1.6;
    color: var(--th-body);
    max-width: none;
    padding: 0 10px 10px;
}
.legal-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--th-ink);
    margin: 20px 0 8px;
}
.legal-body div { margin: 0; }
.legal-body ul { margin: 0 0 12px 1.2em; padding: 0; }
.legal-body li { margin: 0 0 6px; }

.site-footer {
    background: var(--th-footer);
    color: var(--th-footer-text);
    padding: 2.5em 5px 2em;
    margin-top: auto;
}
.site-footer__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}
.site-footer img {
    display: block;
    height: 50px;
    width: auto;
}
.site-footer .description {
    font-size: 13px;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 270px;
    min-width: 260px;
    min-height: 26px;
    background: url("/images/icon1.png") left center no-repeat;
    padding-left: 50px;
    display: flex;
    align-items: center;
    color: var(--th-footer-text);
}
.site-footer a,
.site-footer a:visited {
    color: #ffffff;
    font-size: 13px;
}
.site-footer a:hover { color: var(--th-accent); }
.site-footer .contacts {
    font-size: 13px;
    margin-left: auto;
    text-align: right;
    min-width: 180px;
    color: var(--th-footer-text);
}

@media (max-width: 700px) {
    .site-header__inner,
    .site-footer__inner,
    .site-main {
        padding-left: 10px;
        padding-right: 10px;
    }
    .site-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .site-nav__auth { margin-left: 0; }
    .tester_title {
        font-size: 20px;
        height: auto;
        min-height: 56px;
        background-size: contain;
        line-height: 1.2;
        padding-top: 18px;
    }
    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }
    .site-footer .description {
        margin: 0 auto;
    }
    .site-footer .contacts {
        margin-left: 0;
        text-align: center;
    }
}
