/*
Theme Name: Master Door — Editorial
Author: PromoNord
Description: Конверсионная WordPress-тема для вскрытия и замены замков в Краснодаре.
Version: 2.2.0
Text Domain: master-door-editorial
*/

:root {
    --paper: #f7f4ee;
    --white: #fffdf9;
    --ink: #1f2322;
    --muted: #6f746f;
    --forest: #27443a;
    --sage: #b8c2b4;
    --clay: #c95d3b;
    --sand: #e4d4b8;
    --line: #d6d4cd;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, blockquote { margin-top: 0; }
p, a, span, b, small, summary { overflow-wrap: break-word; }
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: none; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; isolation: isolate; }
.section > .container { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--clay); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow:before { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--sand); }
h2 { max-width: 100%; margin-bottom: 0; font-size: clamp(42px, 5.2vw, 72px); font-weight: 780; line-height: .98; letter-spacing: -.055em; }

/* Новая шапка */
.utility-bar { background: var(--forest); color: #edf0eb; }
.utility-bar .container { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.utility-bar span { display: flex; align-items: center; gap: 8px; }
.utility-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d6a75e; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 38px; }
.wordmark { min-width: 0; margin-right: auto; display: flex; flex-direction: column; line-height: 1; }
.wordmark strong { font-size: 19px; font-weight: 900; letter-spacing: .08em; }
.wordmark small { margin-top: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 11px; font-weight: 750; }
.main-nav a { padding: 9px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-color: var(--clay); }
.header-cta { min-height: 46px; padding: 7px 8px 7px 16px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 800; }
.header-cta b { width: 30px; height: 30px; background: var(--clay); display: grid; place-items: center; font-size: 17px; }

/* Первый экран */
.hero { padding: 38px 0 56px; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); min-height: 690px; border: 1px solid var(--line); }
.hero-copy { min-width: 0; padding: 68px 58px 44px; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { margin: 28px 0 26px; font-size: clamp(58px, 6.5vw, 94px); font-weight: 790; line-height: .86; letter-spacing: -.065em; white-space: nowrap; }
.hero h1 em { color: var(--clay); font-style: normal; }
.hero-lead { max-width: 560px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.hero-actions { margin: 31px 0 40px; display: flex; align-items: center; gap: 22px; }
.button { min-height: 58px; padding: 10px 10px 10px 20px; display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 12px; font-weight: 850; }
.button b { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; font-size: 18px; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark b { background: var(--clay); }
.button-dark:hover { background: var(--forest); }
.button-link { padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 11px; font-weight: 800; }
.hero-meta { margin-top: auto; padding-top: 25px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-meta div { min-width: 0; }
.hero-meta b, .hero-meta span { display: block; }
.hero-meta b { font-size: 14px; }
.hero-meta span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.hero-media { position: relative; min-width: 0; overflow: hidden; background: #d9d4ca; }
.hero-media img { width: 100%; height: 100%; min-height: 690px; object-fit: cover; object-position: 52% center; }
.media-note { position: absolute; left: 24px; bottom: 24px; width: min(330px, calc(100% - 48px)); padding: 18px; background: var(--white); display: flex; align-items: center; gap: 15px; box-shadow: 0 12px 35px rgba(21,25,23,.14); }
.media-note > span { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; color: var(--clay); font-size: 10px; font-weight: 850; }
.media-note p { margin: 0; color: var(--muted); font-size: 9px; }
.media-note b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 12px; }

/* Преимущества */
.benefit-strip { background: var(--forest); color: #fff; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit-grid article { min-width: 0; min-height: 150px; padding: 28px 32px; border-right: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 15px; align-items: start; }
.benefit-grid article:first-child { border-left: 1px solid rgba(255,255,255,.18); }
.benefit-grid article > span { color: var(--sand); font-size: 10px; font-weight: 850; }
.benefit-grid b { display: block; margin-bottom: 8px; font-size: 17px; }
.benefit-grid p { margin: 0; color: #b9c4bf; font-size: 10px; line-height: 1.6; }

/* О проекте */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.section-heading h2 { max-width: 610px; margin-top: 18px; }
.about-copy { min-width: 0; }
.about-copy > p { max-width: 670px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.about-copy .large-copy { color: var(--ink); font-size: 21px; line-height: 1.52; letter-spacing: -.015em; }
.about-facts { margin-top: 35px; border-top: 1px solid var(--line); }
.about-facts div { min-height: 72px; padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: center; gap: 24px; }
.about-facts b { color: var(--clay); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.about-facts span { font-size: 12px; font-weight: 750; }

/* Услуги */
.services { background: var(--ink); color: #fff; }
.services:before, .prices:before, .legal:before, .reviews:before, .faq:before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: -28px; height: 29px; background: inherit; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.services-head { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: end; margin-bottom: 52px; }
.services-head h2 { max-width: 720px; margin-top: 16px; font-size: clamp(42px, 4.8vw, 68px); line-height: 1; }
.services-head > p { margin: 0; padding-bottom: 7px; color: #a7ada8; font-size: 12px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.service-card { min-width: 0; min-height: 390px; padding: 24px; border: 1px solid #464a48; background: #292d2b; display: flex; flex-direction: column; grid-column: span 2; }
.service-card:nth-child(4) { grid-column: 2 / span 2; }
.service-featured { background: var(--forest); border-color: var(--forest); }
.service-index { align-self: flex-end; color: var(--sand); font-size: 10px; font-weight: 850; }
.service-icon { width: 62px; height: 62px; margin-top: 33px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: grid; place-items: center; color: var(--sand); }
.service-icon svg { width: 30px; }
.service-card h3 { min-height: 58px; margin: 50px 0 10px; font-size: 24px; line-height: 1.08; letter-spacing: -.03em; }
.service-card p { min-height: 48px; margin-bottom: 26px; color: #aeb4af; font-size: 10px; line-height: 1.6; }
.service-card strong { margin-top: auto; color: var(--sand); font-size: 22px; }

/* Стоимость */
.prices { background: var(--white); }
.prices-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 88px; align-items: start; }
.price-copy h2 { margin: 18px 0 24px; }
.price-copy > p { max-width: 530px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.false-call { margin-top: 34px; padding: 18px; border: 1px solid var(--line); display: flex; align-items: flex-start; gap: 14px; }
.false-call > span { width: 34px; height: 34px; flex: 0 0 34px; background: var(--clay); color: #fff; display: grid; place-items: center; font-weight: 900; }
.false-call p { margin: 0; color: var(--muted); font-size: 9px; }
.false-call b { display: block; margin-bottom: 3px; color: var(--ink); font-size: 12px; }
.price-table { border-top: 2px solid var(--ink); }
.price-table > div { min-width: 0; min-height: 88px; padding: 17px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.price-table span { font-size: 15px; font-weight: 750; }
.price-table b { color: var(--clay); font-size: 20px; white-space: nowrap; }

/* Оценка */
.estimate { padding-top: 0; background: var(--white); }
.estimate-panel { min-height: 340px; padding: 44px 48px; background: var(--clay); color: #fff; display: grid; grid-template-columns: 96px minmax(0,1fr) 260px; gap: 32px; align-items: center; }
.estimate-mark { width: 96px; height: 96px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; display: grid; place-items: center; font-size: 24px; font-weight: 900; letter-spacing: .08em; }
.estimate-copy h2 { max-width: 680px; margin: 14px 0 16px; font-size: clamp(38px, 3.8vw, 54px); line-height: 1.02; }
.estimate-copy p { max-width: 700px; margin: 0; color: #f0d6ce; font-size: 11px; }
.button-light { width: 100%; background: var(--white); color: var(--ink); }
.button-light b { background: var(--ink); color: #fff; }

/* Этапы */
.steps { background: var(--paper); }
.steps-heading { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 70px; margin-bottom: 58px; }
.steps-heading h2 { max-width: 780px; font-size: clamp(42px, 4.7vw, 66px); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.steps-grid article { min-width: 0; min-height: 280px; padding: 24px 28px 0 0; border-right: 1px solid var(--line); }
.steps-grid article + article { padding-left: 28px; }
.steps-grid article:last-child { border-right: 0; }
.steps-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.steps-grid article > div span { width: 48px; height: 48px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; color: var(--clay); font-size: 10px; font-weight: 900; }
.steps-grid article > div b { color: var(--forest); font-size: 9px; text-transform: uppercase; }
.steps-grid h3 { margin: 58px 0 9px; font-size: 23px; }
.steps-grid p { max-width: 230px; margin: 0; color: var(--muted); font-size: 10px; }

/* Документы */
.legal { background: var(--forest); color: #fff; }
.legal-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; }
.legal h2 { max-width: 570px; margin-top: 17px; }
.document-cards { border-top: 1px solid rgba(255,255,255,.25); }
.document-cards article { min-height: 105px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.25); display: grid; grid-template-columns: 155px minmax(0,1fr); gap: 30px; align-items: center; }
.document-cards span { color: var(--sand); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.document-cards b { font-size: 13px; line-height: 1.5; }

/* Отзывы */
.reviews { background: var(--sand); }
.reviews-head { display: grid; grid-template-columns: 160px 1fr 320px; gap: 48px; align-items: end; margin-bottom: 45px; }
.reviews-head p { margin: 0; color: #5e5c56; font-size: 11px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review-grid blockquote { min-width: 0; min-height: 300px; margin: 0; padding: 28px; border: 1px solid #c1b295; background: var(--paper); display: flex; flex-direction: column; }
.review-grid blockquote > span { color: var(--clay); font-size: 10px; font-weight: 900; }
.review-grid blockquote p { margin: 55px 0 28px; font-size: 17px; line-height: 1.55; letter-spacing: -.015em; }
.review-grid blockquote footer { margin-top: auto; color: var(--muted); font-size: 10px; font-weight: 750; }

/* FAQ */
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; }
.faq-grid h2 { margin-top: 18px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { padding: 21px 0; border-bottom: 1px solid var(--line); }
.faq summary { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; color: var(--clay); font-size: 20px; }
.faq details[open] summary:after { content: "−"; background: var(--ink); color: #fff; }
.faq details p { max-width: 680px; padding-right: 55px; margin: 12px 0 0; color: var(--muted); font-size: 11px; }

/* Подвал */
.site-footer { padding: 40px 0; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: .65fr 1fr 1fr; gap: 55px; align-items: start; }
.footer-grid > div b, .footer-grid > div span { display: block; }
.footer-grid > div b { font-size: 16px; letter-spacing: .08em; }
.footer-grid > div span { margin-top: 5px; color: var(--sand); font-size: 9px; text-transform: uppercase; }
.footer-grid p, .footer-grid small { margin: 0; color: #9fa49f; font-size: 9px; }
.footer-grid small { text-align: right; }
.mobile-cta { display: none; }
.content-page { min-height: 60vh; padding: 80px 0; }

@media (max-width: 1180px) {
    .main-nav { display: none; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { min-height: 640px; }
    .hero-media img { min-height: 580px; max-height: 680px; }
    .about-grid, .prices-grid, .legal-grid, .faq-grid { grid-template-columns: 1fr; gap: 48px; }
    .services-head { grid-template-columns: 1fr; }
    .services:before, .prices:before, .legal:before, .reviews:before, .faq:before { top: -18px; height: 19px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card, .service-card:nth-child(4) { grid-column: auto; }
    .service-card:last-child { grid-column: 1 / -1; min-height: 320px; }
    .estimate-panel { grid-template-columns: 90px minmax(0,1fr); }
    .estimate-panel .button { grid-column: 2; width: min(100%, 320px); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid article:nth-child(2) { border-right: 0; }
    .steps-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .reviews-head { grid-template-columns: 150px 1fr; }
    .reviews-head p { grid-column: 2; }
}

@media (max-width: 700px) {
    .container { width: min(var(--max), calc(100% - 28px)); }
    .section { padding: 76px 0; }
    .utility-bar .container { min-height: 42px; justify-content: center; text-align: center; }
    .utility-bar b { display: none; }
    .header-inner { min-height: 70px; gap: 12px; }
    .wordmark strong { font-size: 15px; }
    .wordmark small { font-size: 7px; }
    .header-cta { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
    .header-cta span { display: none; }
    .header-cta b { background: transparent; }
    .hero { padding: 18px 0 32px; }
    .hero-grid { min-height: 0; }
    .hero-copy { min-height: 0; padding: 43px 24px 34px; }
    .hero h1 { margin: 23px 0 22px; font-size: clamp(44px, 14vw, 62px); line-height: .9; letter-spacing: -.055em; }
    .hero-lead { font-size: 13px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .button-link { align-self: flex-start; }
    .hero-meta { grid-template-columns: 1fr; gap: 12px; }
    .hero-meta div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 15px; align-items: center; }
    .hero-meta span { margin: 0; }
    .hero-media img { min-height: 430px; object-position: 61% center; }
    .media-note { left: 14px; bottom: 14px; width: calc(100% - 28px); }
    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-grid article, .benefit-grid article:first-child { min-height: 120px; border-left: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
    h2 { font-size: clamp(39px, 12vw, 52px); }
    .about-copy .large-copy { font-size: 18px; }
    .about-facts div { grid-template-columns: 90px minmax(0,1fr); gap: 15px; }
    .services-head { gap: 24px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card, .service-card:last-child { grid-column: auto; min-height: 330px; }
    .service-card h3 { min-height: 0; margin-top: 34px; }
    .service-card p { min-height: 0; }
    .price-table > div { align-items: flex-start; flex-direction: column; gap: 7px; }
    .price-table b { white-space: normal; }
    .estimate-panel { padding: 32px 24px; grid-template-columns: 1fr; }
    .estimate-mark { width: 70px; height: 70px; font-size: 18px; }
    .estimate-panel .button { grid-column: auto; width: 100%; }
    .steps-heading { grid-template-columns: 1fr; gap: 20px; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid article, .steps-grid article + article { min-height: 220px; padding: 23px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .steps-grid h3 { margin-top: 34px; }
    .document-cards article { grid-template-columns: 1fr; gap: 8px; }
    .reviews-head { grid-template-columns: 1fr; gap: 16px; }
    .reviews-head p { grid-column: auto; }
    .review-grid { grid-template-columns: 1fr; }
    .review-grid blockquote { min-height: 250px; }
    .faq details p { padding-right: 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 22px; }
    .footer-grid small { text-align: left; }
    .mobile-cta { position: fixed; z-index: 80; left: 14px; right: 14px; bottom: 14px; min-height: 56px; padding: 8px 9px 8px 17px; background: var(--clay); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 15px; box-shadow: 0 10px 30px rgba(25,29,27,.2); font-size: 12px; font-weight: 850; }
    .mobile-cta b { width: 38px; height: 38px; background: #fff; color: var(--ink); display: grid; place-items: center; }
}
