/*
Theme Name: Ростов Экспертиза
Theme URI: https://rostov-expertise.ru/
Author: Rostov Expertise
Author URI: https://rostov-expertise.ru/
Description: Корпоративная тема WordPress для ООО «Центр экспертиз и оценок «Ростов Экспертиза».
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rostov-expertise
Tags: corporate, business, custom-menu, featured-images, custom-logo, translation-ready
*/

/* =============================================
   RESET / BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: #ffffff; }

body {
    margin: 0;
    font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #2b2b2b;
    background: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #3a8a2a; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #2a6a1c; text-decoration: underline; }

h1,h2,h3,h4,h5,h6 {
    font-family: 'PT Serif', 'Times New Roman', Georgia, serif;
    color: #2b2b2b;
    line-height: 1.25;
    margin: 0 0 .6em;
    font-weight: 700;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 55px 0; }
.section--alt { background: #f6faf2; }

.section-title {
    text-align: center;
    margin-bottom: 35px;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px; height: 3px;
    background: #3db14b;
    margin: 12px auto 0;
}

/* =============================================
   HEADER — TOP ROW
   ============================================= */
.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.site-header * { box-sizing: border-box; }

.header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 14px 0;
    gap: 20px;
}

/* --- LOGO --- */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    max-width: 280px;
}
.header-logo:hover { text-decoration: none; }

/* SVG arrow logo */
.logo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.logo-text-wrap .logo-name {
    display: block;
    font-family: 'PT Serif', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
}
.logo-text-wrap .logo-sub {
    display: block;
    font-size: .78rem;
    color: #555;
    line-height: 1.3;
}

/* --- CITY BLOCK (middle) --- */
.header-city {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 220px;
}

.city-selector {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #3db14b;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 1px dashed #3db14b;
    line-height: 1;
}
.city-selector svg { width: 10px; height: 10px; fill: #3db14b; }

.header-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    color: #444;
    font-size: .82rem;
    line-height: 1.35;
}
.header-address svg {
    width: 14px;
    height: 14px;
    fill: #888;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- CONTACTS RIGHT --- */
.header-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.header-phones {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-phone-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1a1a1a;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
}
.header-phone-line:hover { color: #3db14b; text-decoration: none; }
.header-phone-line svg { width: 14px; height: 14px; fill: #3db14b; flex-shrink: 0; }

.header-email-line {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444;
    font-size: .85rem;
    text-decoration: none;
}
.header-email-line:hover { color: #3db14b; text-decoration: none; }
.header-email-line svg { width: 13px; height: 13px; fill: #3db14b; flex-shrink: 0; }

.header-right-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

/* "Обратный звонок" outlined button */
.btn-callback-header {
    display: inline-block;
    padding: 7px 16px;
    border: 1.5px solid #2a6a1c;
    color: #2a6a1c !important;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .2s;
}
.btn-callback-header:hover {
    background: #2a6a1c;
    color: #fff !important;
}

/* Social icons VK / OK */
.social-icons {
    display: flex;
    gap: 8px;
    align-items: center;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #1a1a1a;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background .2s;
}
.social-icon:hover { background: #3db14b; }
.social-icon svg { width: 20px; height: 20px; fill: #ffffff; }

/* =============================================
   NAVIGATION BAR
   ============================================= */
.main-nav-bar {
    border-top: 1px solid #e8e8e8;
    background: #ffffff !important;
}

.main-nav-bar__inner {
    display: flex;
    align-items: center;
}

/* Reset ANY ul inside the nav — override WordPress/browser defaults */
.main-nav-bar ul,
.main-nav-bar ul ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    background: transparent !important;
}

.main-nav-bar li,
.main-nav-bar ul li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    background: none !important;
}

/* Bullet image override — some WP themes inject a bullet via background-image */
.main-nav-bar li::before,
.main-nav-bar li::after {
    display: none !important;
    content: none !important;
}

/* Separator items */
.main-nav-bar .nav-sep {
    color: #bbb;
    padding: 0 4px;
    font-size: 1rem;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    display: block !important;
}

.main-nav-bar a {
    display: block !important;
    padding: 13px 13px !important;
    color: #333 !important;
    font-size: .88rem;
    font-weight: 400;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}

.main-nav-bar a:hover,
.main-nav-bar .current-menu-item > a,
.main-nav-bar .current_page_item > a,
.main-nav-bar .current-page-ancestor > a {
    color: #3db14b !important;
    border-bottom-color: #3db14b !important;
    text-decoration: none !important;
    font-weight: 600;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #3db14b;
    color: #3db14b;
    padding: 7px 14px;
    cursor: pointer;
    font-size: .85rem;
    border-radius: 3px;
    margin: 8px 20px;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 11px 24px;
    background: #3db14b;
    color: #fff !important;
    font-weight: 600;
    border-radius: 24px;
    border: 2px solid #3db14b;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .2s;
    font-size: .95rem;
    text-align: center;
}
.btn:hover { background: #2e9a3a; border-color: #2e9a3a; }

.btn--orange {
    background: #f5a623;
    border-color: #f5a623;
    color: #fff !important;
}
.btn--orange:hover { background: #e09510; border-color: #e09510; }

.btn--outline {
    background: transparent;
    color: #3db14b !important;
    border-color: #3db14b;
}
.btn--outline:hover { background: #3db14b; color: #fff !important; }

.btn--outline-white {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
}
.btn--outline-white:hover { background: #fff; color: #3db14b !important; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: #3db14b;
    color: #ffffff;
    margin-top: 0;
}

.footer-main {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 30px;
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,.2);
}

/* Footer logo */
.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none !important;
}
.footer-logo:hover { text-decoration: none; }
.footer-logo .logo-name {
    display: block;
    font-family: 'PT Serif', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.2;
}
.footer-logo .logo-sub {
    display: block;
    font-size: .8rem;
    color: rgba(255,255,255,.85);
    line-height: 1.3;
}

/* Footer middle info */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: .85rem;
    color: rgba(255,255,255,.95);
    line-height: 1.55;
}
.footer-info a { color: #fff; text-decoration: underline; }
.footer-info a:hover { color: rgba(255,255,255,.75); }

/* Footer right contacts */
.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-phone {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}
.footer-phone:hover { color: rgba(255,255,255,.8); text-decoration: none; }

/* "Обратный звонок" in footer — orange pill */
.btn-callback-footer {
    display: inline-block;
    padding: 8px 20px;
    background: #f5a623;
    color: #fff !important;
    border-radius: 22px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    border: none;
    transition: background .2s;
}
.btn-callback-footer:hover { background: #e09510; text-decoration: none; }

/* Footer bottom strip */
.footer-bottom {
    padding: 12px 0;
    text-align: right;
    font-size: .8rem;
    color: rgba(255,255,255,.85);
}
.footer-bottom a {
    color: rgba(255,255,255,.9);
    margin-left: 18px;
    text-decoration: none;
}
.footer-bottom a:hover { text-decoration: underline; }

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.01) 100%);
    z-index: 1;
}
.hero__content {
    position: relative;
    z-index: 2;
    margin-left: auto;
    max-width: 380px;
    background: rgba(61,177,75,.9);
    border-radius: 12px;
    padding: 28px 26px;
    color: #fff;
}
.hero__content h1 {
    color: #fff;
    font-size: 1.55rem;
    margin-bottom: 10px;
    line-height: 1.2;
}
.hero__content p {
    font-size: .88rem;
    color: rgba(255,255,255,.93);
    margin-bottom: 20px;
}
.hero__content .btn {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    font-size: .82rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 10px 22px;
    color: #fff !important;
}
.hero__content .btn:hover { background: #fff; color: #3db14b !important; }

/* =============================================
   CARDS
   ============================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.card {
    background: #fff;
    border: 1px solid #e4edd8;
    border-radius: 6px;
    padding: 26px 20px;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(61,177,75,.12); }
.card__icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    background: #3db14b;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.card__icon svg { width: 28px; height: 28px; fill: #fff; }
.card h3 { color: #2a6a1c; font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: #555; font-size: .88rem; margin: 0; }

/* =============================================
   PRICE TABLE
   ============================================= */
.price-tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.price-table {
    border: 1px solid #dce8ce;
    border-radius: 4px;
    overflow: hidden;
}
.price-table h3 {
    margin: 0;
    padding: 13px 16px;
    background: #3db14b;
    color: #fff;
    font-size: .95rem;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}
.price-table table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.price-table th, .price-table td {
    padding: 9px 13px;
    text-align: left;
    border-bottom: 1px solid #edf4e3;
}
.price-table th {
    background: #3db14b;
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
}
.price-table tbody tr:nth-child(even) { background: #f6faf2; }
.price-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }

.price-note {
    background: #f6faf2;
    border-left: 4px solid #3db14b;
    padding: 12px 16px;
    margin-bottom: 22px;
    color: #3a6a1c;
    font-size: .88rem;
}

/* =============================================
   STAGES
   ============================================= */
.stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    counter-reset: stage;
}
.stage {
    counter-increment: stage;
    background: #fff;
    border: 1px solid #dce8ce;
    border-radius: 6px;
    padding: 30px 18px 20px;
    text-align: center;
    position: relative;
}
.stage::before {
    content: counter(stage);
    position: absolute;
    top: -20px; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 40px;
    background: #3db14b;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #dce8ce;
}
.stage h4 { color: #2a6a1c; margin-top: 10px; }
.stage p { color: #555; font-size: .88rem; margin: 0; }

/* =============================================
   GEO / CONTACTS / CLIENTS
   ============================================= */
.geo-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.geo-block {
    background: #fff;
    border: 1px solid #dce8ce;
    border-radius: 6px;
    padding: 24px;
}
.geo-block h3 {
    border-bottom: 2px solid #3db14b;
    padding-bottom: 9px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.geo-block ul {
    list-style: none;
    padding: 0; margin: 0;
    columns: 2; column-gap: 16px;
}
.geo-block li {
    padding: 5px 0 5px 16px;
    position: relative;
    break-inside: avoid;
    font-size: .9rem;
}
.geo-block li::before { content: "▸"; position: absolute; left: 0; color: #3db14b; }

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.contact-block {
    background: #fff;
    border: 1px solid #dce8ce;
    border-radius: 6px;
    padding: 24px;
}
.contact-block h3 { border-bottom: 2px solid #3db14b; padding-bottom: 9px; margin-bottom: 14px; }
.contact-block dt { font-weight: 600; color: #2a6a1c; margin-top: 10px; font-size: .85rem; text-transform: uppercase; }
.contact-block dd { margin: 3px 0 0; }

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    align-items: center;
}
.client-logo {
    background: #fff;
    border: 1px solid #dce8ce;
    border-radius: 6px;
    padding: 20px 14px;
    text-align: center;
    color: #3a6a1c;
    font-weight: 600;
    font-size: .88rem;
    min-height: 80px;
    display: flex; align-items: center; justify-content: center;
    transition: border-color .2s, box-shadow .2s;
}
.client-logo:hover { border-color: #3db14b; box-shadow: 0 4px 10px rgba(61,177,75,.15); }

/* =============================================
   CTA STRIP (green — like in the screenshot)
   ============================================= */
.cta-strip {
    background: #3db14b;
    padding: 45px 0;
    color: #fff;
}
.cta-strip-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}
.cta-strip h2 { color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.cta-strip p { color: rgba(255,255,255,.92); margin-bottom: 20px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================
   CALLBACK FORM
   ============================================= */
.callback-form {
    max-width: 520px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dce8ce;
    border-radius: 8px;
    padding: 28px;
}
.callback-form .form-row { margin-bottom: 14px; }
.callback-form label {
    display: block;
    font-weight: 600;
    color: #2a6a1c;
    margin-bottom: 5px;
    font-size: .85rem;
}
.callback-form input,
.callback-form textarea,
.callback-form select {
    width: 100%;
    padding: 9px 13px;
    border: 1px solid #cdd8c4;
    border-radius: 4px;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s;
}
.callback-form input:focus,
.callback-form textarea:focus {
    outline: none;
    border-color: #3db14b;
    box-shadow: 0 0 0 3px rgba(61,177,75,.12);
}
.callback-form textarea { min-height: 90px; resize: vertical; }
.callback-form .btn { width: 100%; }
.form-status { margin-top: 10px; font-size: .88rem; text-align: center; }

/* =============================================
   PAGE HEADER (interior)
   ============================================= */
.page-header {
    background: #f6faf2;
    border-bottom: 1px solid #dce8ce;
    padding: 36px 0;
    text-align: center;
}
.page-header h1 { color: #2a6a1c; margin: 0; }
.breadcrumbs { color: #888; font-size: .85rem; margin-top: 6px; }
.breadcrumbs a { color: #3db14b; }

/* =============================================
   BLOG / POSTS
   ============================================= */
.entry-content { line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin-top: 1.5em; }
.entry-content blockquote {
    border-left: 4px solid #3db14b;
    background: #f6faf2;
    padding: 14px 20px;
    margin: 1.5em 0;
    font-style: italic;
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 14px; left: 14px; right: 14px;
    max-width: 680px;
    margin: 0 auto;
    background: #2a6a1c;
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    z-index: 999;
}
.cookie-banner p { margin: 0; font-size: .88rem; flex: 1; min-width: 200px; }
.cookie-banner.is-hidden { display: none; }

/* =============================================
   ACCESSIBILITY
   ============================================= */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px);
    -webkit-clip-path: inset(50%); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute !important;
    width: 1px; word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px;
    background: #3db14b; color: #fff;
    padding: 8px 14px; z-index: 10000;
    border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; top: 0; }

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-contacts { align-items: flex-start; grid-column: span 2; }
    .price-tables, .geo-cols, .contacts-grid { grid-template-columns: 1fr; }
    .cta-strip-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .header-top { grid-template-columns: auto auto; }
    .header-city { display: none; }
}

@media (max-width: 720px) {
    .header-top { grid-template-columns: 1fr; padding: 12px 0; }
    .header-contacts { align-items: flex-start; }
    .menu-toggle { display: block; }
    .main-nav-bar ul { display: none; flex-direction: column; }
    .main-nav-bar.is-open ul { display: flex; }
    .main-nav-bar a { border-bottom: 1px solid #eee; padding: 10px 20px; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-contacts { align-items: flex-start; grid-column: auto; }
    .footer-bottom { text-align: center; }
    .cards { grid-template-columns: 1fr; }
}
