/*
Theme Name: Реферкей — визуалы и логотип
Theme URI: https://r-key.ru/
Author: Реферкей
Description: Адаптивная тема для кадастровых, IT- и юридических услуг.
Version: 1.4.7
Text Domain: referkey
*/

:root {
  --ink: #161714;
  --ink-soft: #23241f;
  --gold: #d3ac55;
  --gold-light: #efd18b;
  --paper: #f6f4ee;
  --paper-deep: #e9e5da;
  --line: rgba(22, 23, 20, .14);
  --muted: #65675f;
  --white: #ffffff;
  --success: #27694d;
  --danger: #9c3328;
  --radius: 22px;
  --shadow: 0 20px 55px rgba(12, 13, 10, .12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #8a671e; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; z-index: 1000; background: var(--white); padding: 12px 16px; }
.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.site-main { overflow: hidden; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(22, 23, 20, .96); color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; width: clamp(210px, 18vw, 286px); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-image { display: block; width: 100%; height: auto; }
.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav a { color: rgba(255,255,255,.82); font-size: 13px; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--gold-light); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.button, .wp-element-button, input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 19px; border: 1px solid transparent; border-radius: 999px; background: var(--gold); color: #201b0f; font-weight: 750; line-height: 1.2; text-align: center; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover, .wp-element-button:hover, input[type="submit"]:hover { color: #201b0f; transform: translateY(-2px); background: var(--gold-light); box-shadow: 0 11px 25px rgba(211,172,85,.2); }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.45); color: var(--white); }
.button--ghost:hover { color: var(--white); background: rgba(255,255,255,.09); }
.button--light { background: var(--paper); color: var(--ink); }
.button--outline { border-color: rgba(112,83,20,.54); background: transparent; color: #604612; }
.button--outline:hover { color: #201b0f; background: var(--paper-deep); box-shadow: none; }
.menu-toggle { display: none; border: 0; width: 44px; height: 44px; color: var(--white); background: transparent; font-size: 26px; }

.hero { position: relative; padding: 104px 0 72px; color: var(--white); background: linear-gradient(90deg, rgba(14,15,13,.82), rgba(14,15,13,.57) 58%, rgba(14,15,13,.31)), url("assets/images/refkey-texture-dark.webp") center / cover no-repeat var(--ink); }
.hero::before, .hero::after { display: none; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(290px, .85fr); align-items: end; gap: 60px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--gold-light); font-size: 12px; letter-spacing: .15em; font-weight: 750; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
h1, h2, h3, h4 { margin: 0; color: inherit; font-family: Inter, ui-sans-serif, system-ui, sans-serif; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 900px; margin-top: 18px; font-size: clamp(42px, 6vw, 78px); font-weight: 760; }
.hero p { max-width: 680px; margin: 24px 0 0; color: rgba(255,255,255,.74); font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-side { padding: 30px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background: rgba(255,255,255,.06); box-shadow: var(--shadow); }
.hero-side__label { color: var(--gold-light); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero-side__title { margin-top: 15px; font-size: 27px; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.hero-side ul { display: grid; gap: 11px; margin: 21px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.8); }
.hero-side li { padding-left: 19px; position: relative; }
.hero-side li::before { content: ""; position: absolute; left: 0; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

.section { padding: 88px 0; }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--ink { color: var(--white); background: var(--ink); }
.section--muted { background: var(--paper-deep); }
.section-heading { max-width: 740px; }
.section-heading h2 { margin-top: 14px; font-size: clamp(33px, 4vw, 52px); font-weight: 750; }
.section-heading p { margin: 19px 0 0; color: var(--muted); font-size: 18px; }
.section--ink .section-heading p { color: rgba(255,255,255,.68); }
.section-heading + .direction-grid, .section-heading + .service-grid, .section-heading + .article-grid, .section-heading + .faq-grid { margin-top: 42px; }

.direction-grid, .service-grid, .article-grid, .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.direction-card, .service-card, .article-card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 32px rgba(12,13,10,.035); }
.direction-card { overflow: hidden; min-height: 330px; }
.direction-card { background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(255,255,255,.47)), url("assets/images/refkey-texture-light.webp") right center / cover no-repeat var(--white); }
.direction-card::after { display: none; }
.direction-card--accent { color: var(--white); background: linear-gradient(145deg, rgba(12,13,10,.34), rgba(12,13,10,.15)), url("assets/images/refkey-texture-dark.webp") right center / cover no-repeat var(--ink); border-color: var(--ink); }
.card-kicker { position: relative; z-index: 1; color: #806321; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.direction-card--accent .card-kicker { color: var(--gold-light); }
.direction-card h3 { position: relative; z-index: 1; margin-top: 19px; font-size: 29px; font-weight: 720; }
.direction-card p { position: relative; z-index: 1; margin: 14px 0 0; color: var(--muted); }
.direction-card--accent p { color: rgba(255,255,255,.72); }
.link-arrow { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; color: var(--ink); font-weight: 750; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.direction-card--accent .link-arrow { color: var(--gold-light); }

.service-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { padding: 24px; }
.service-card h3 { font-size: 22px; font-weight: 720; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a:hover { color: #7c5c16; }
.service-card p { margin: 11px 0 0; color: var(--muted); font-size: 15px; }
.service-card__actions { display: grid; gap: 10px; margin-top: auto; padding-top: 23px; }
.service-card__actions .button { width: 100%; min-height: 43px; padding: 10px 15px; font-size: 14px; }
.service-card__more { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 760; }
.service-card__more:hover span { transform: translateX(4px); }
.service-card__more span { transition: transform .2s ease; }
.button--small { align-self: flex-start; min-height: 41px; padding: 9px 15px; font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 7vw, 100px); align-items: center; }
.split__body > * + * { margin-top: 20px; }
.split__body h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 750; }
.split__body p { color: var(--muted); font-size: 17px; }
.check-list { display: grid; gap: 13px; margin: 25px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 0 0 0 28px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #89671c; font-weight: 850; }
.visual-placeholder { display: flex; flex-direction: column; justify-content: end; min-height: 390px; margin: 0; padding: 26px; border-radius: var(--radius); color: rgba(255,255,255,.84); background: linear-gradient(135deg, #303129, #1a1b18); overflow: hidden; position: relative; }
.visual-placeholder::before, .visual-placeholder::after { content: ""; position: absolute; border: 1px solid rgba(211,172,85,.55); border-radius: 50%; }
.visual-placeholder::before { width: 310px; height: 310px; right: -95px; top: -72px; }
.visual-placeholder::after { width: 170px; height: 170px; right: 42px; top: 78px; }
.visual-placeholder__tag { position: relative; z-index: 1; color: var(--gold-light); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 750; }
.visual-placeholder strong { position: relative; z-index: 1; margin-top: 10px; max-width: 400px; font-size: 26px; line-height: 1.15; letter-spacing: -.035em; }
.visual-placeholder figcaption { position: relative; z-index: 1; margin-top: 12px; color: rgba(255,255,255,.62); font-size: 14px; }
.visual-placeholder--image { display: block; padding: 0; background: #1a1b18; }
.visual-placeholder--image::before, .visual-placeholder--image::after { display: none; }
.visual-placeholder__image { display: block; width: 100%; min-height: 390px; height: 100%; object-fit: cover; }

.stat-grid { grid-template-columns: repeat(4, 1fr); margin-top: 45px; }
.stat { padding: 24px 0; border-top: 1px solid rgba(255,255,255,.2); }
.stat strong { display: block; color: var(--gold-light); font-size: 33px; letter-spacing: -.05em; }
.stat span { display: block; margin-top: 5px; color: rgba(255,255,255,.65); font-size: 14px; }

.process-list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 44px 0 0; }
.process-list::before { content: ""; position: absolute; top: 25px; right: calc(16.666% + 10px); left: calc(16.666% + 10px); height: 1px; background: var(--line); }
.process-item { position: relative; z-index: 1; padding-right: 12px; }
.process-item__number { display: grid; width: 51px; height: 51px; place-items: center; border: 1px solid #af8831; border-radius: 50%; color: #715215; background: var(--white); font-size: 14px; font-weight: 800; letter-spacing: .08em; }
.section--ink .process-item__number { color: var(--gold-light); border-color: rgba(239,209,139,.68); background: var(--ink); }
.process-item h3 { margin-top: 21px; font-size: 21px; font-weight: 720; }
.process-item p { margin: 12px 0 0; color: var(--muted); }
.section--ink .process-item p { color: rgba(255,255,255,.67); }

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 36px; }
.faq-grid details { padding: 17px 0; border-bottom: 1px solid var(--line); }
.faq-grid summary { padding-right: 28px; cursor: pointer; list-style: none; font-weight: 720; position: relative; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; right: 0; top: -4px; color: #8b6820; font-size: 24px; font-weight: 400; }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

.cta-panel { padding: clamp(31px,5vw,58px); border-radius: 28px; color: var(--white); background: linear-gradient(90deg, rgba(15,16,13,.9), rgba(15,16,13,.74) 58%, rgba(15,16,13,.28)), url("assets/images/refkey-texture-marble.webp") center / cover no-repeat #151613; position: relative; overflow: hidden; }
.cta-panel::before { display: none; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { max-width: 720px; font-size: clamp(31px,4vw,49px); font-weight: 750; }
.cta-panel p { max-width: 660px; margin: 16px 0 0; color: rgba(255,255,255,.7); font-size: 17px; }
.cta-panel .button { margin-top: 25px; }

.contact-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: 28px; margin-top: 40px; }
.contact-card, .form-card { padding: clamp(24px,4vw,42px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.contact-card { color: var(--white); background: var(--ink); border-color: var(--ink); }
.contact-map { margin: 0; padding: 88px 0; background: var(--white); }
.contact-map .container { max-width: 1280px; }
.contact-map iframe { display: block; width: 100%; min-height: 460px; border: 0; border-radius: var(--radius); background: var(--paper-deep); box-shadow: var(--shadow); }
.contact-map p { margin: 17px 0 0; color: var(--muted); }
.contact-map a { margin-left: 10px; color: #715215; font-weight: 750; }
.contact-card h2, .form-card h2 { font-size: 33px; font-weight: 750; }
.contact-list { display: grid; gap: 21px; margin: 30px 0 0; }
.contact-list div { display: grid; gap: 4px; }
.contact-list dt { color: var(--gold-light); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.contact-list dd { margin: 0; color: rgba(255,255,255,.83); }
.contact-list a { color: var(--white); }
.form-card p { margin: 10px 0 0; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 7px; margin-top: 18px; }
.form-field label { font-size: 14px; font-weight: 690; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 14px; border: 1px solid #c8c7c0; border-radius: 11px; color: var(--ink); background: #fff; outline: none; }
.form-field textarea { min-height: 115px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: #9c751e; box-shadow: 0 0 0 3px rgba(211,172,85,.2); }
.form-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.form-consent input { width: 17px; height: 17px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--ink); }
.form-submit { margin-top: 22px; }
.form-submit input { border: 0; }
.form-status { margin: 0 0 18px; padding: 13px 15px; border-radius: 11px; font-weight: 650; }
.form-status--success { color: #16543a; background: #e1f4e9; }
.form-status--error { color: #822e25; background: #fde9e6; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.page-hero { padding: 72px 0 56px; color: var(--white); background: linear-gradient(90deg, rgba(14,15,13,.83), rgba(14,15,13,.55) 60%, rgba(14,15,13,.30)), url("assets/images/refkey-texture-dark.webp") center / cover no-repeat var(--ink); }
.page-hero .breadcrumbs { color: var(--gold-light); font-size: 13px; }
.page-hero h1 { max-width: 900px; font-size: clamp(40px,5vw,67px); }
.page-hero p { max-width: 720px; margin: 20px 0 0; color: rgba(255,255,255,.72); font-size: 19px; }
.entry-content { max-width: 820px; }
.entry-content > * + * { margin-top: 22px; }
.entry-content h2 { margin-top: 54px; font-size: clamp(28px,3vw,40px); font-weight: 750; }
.entry-content h3 { margin-top: 34px; font-size: 25px; font-weight: 730; }
.entry-content p, .entry-content li { color: #474940; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content li + li { margin-top: 8px; }
.entry-content .intro { color: #383a34; font-size: 19px; line-height: 1.62; }
.entry-content .notice { padding: 20px 22px; border-left: 3px solid var(--gold); background: var(--paper-deep); border-radius: 0 12px 12px 0; color: #4f504a; }
.entry-content .legal-card { padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.entry-content th, .entry-content td { min-width: 160px; padding: 13px; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.entry-content th { background: var(--paper-deep); }
.service-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 42px; }
.service-detail-grid--top { align-items: stretch; }
.service-detail-card { padding: clamp(25px, 3.5vw, 38px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.service-detail-card--accent { color: var(--white); border-color: var(--ink); background: var(--ink); }
.service-detail-card h2, .service-detail-card h3 { margin-top: 13px; font-size: clamp(28px, 3vw, 38px); font-weight: 750; }
.service-detail-card h3 { font-size: 26px; }
.service-detail-card p { margin: 16px 0 0; color: var(--muted); }
.service-detail-card--accent p { color: rgba(255,255,255,.7); }
.service-detail-card .button { margin-top: 24px; }
.scenario-card { max-width: 930px; padding: clamp(29px, 5vw, 56px); border-radius: var(--radius); color: var(--white); background: linear-gradient(122deg, #262720, #151613 60%, #3d351f); }
.scenario-card h2 { margin-top: 14px; font-size: clamp(31px, 4vw, 49px); font-weight: 750; }
.scenario-card p { max-width: 760px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.55; }

.lead-modal { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 22px; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.lead-modal.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.lead-modal__backdrop { position: absolute; inset: 0; border: 0; background: rgba(10, 11, 9, .74); backdrop-filter: blur(8px); }
.lead-modal__dialog { position: relative; width: min(100%, 660px); max-height: min(880px, calc(100vh - 44px)); overflow-y: auto; padding: clamp(26px, 5vw, 48px); border: 1px solid rgba(211,172,85,.42); border-radius: 26px; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.4); outline: none; }
.lead-modal__dialog > p { margin: 14px 0 0; color: var(--muted); }
.lead-modal__dialog h2 { margin-top: 13px; padding-right: 38px; font-size: clamp(31px, 5vw, 48px); font-weight: 760; }
.lead-modal__close { position: absolute; top: 18px; right: 18px; display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--white); font-size: 28px; line-height: 1; cursor: pointer; }
.lead-modal .refkey-contact-form { margin-top: 24px; }
.lead-modal-open { overflow: hidden; }
.page-layout { padding: 68px 0 88px; }
.page-layout--wide .entry-content { max-width: none; }
.page-layout--wide .entry-content > h2, .page-layout--wide .entry-content > h3, .page-layout--wide .entry-content > p, .page-layout--wide .entry-content > ul, .page-layout--wide .entry-content > ol, .page-layout--wide .entry-content > .notice, .page-layout--wide .entry-content > .legal-card { max-width: 820px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { text-decoration: none; }

.blog-header { padding: 70px 0 43px; color: var(--white); background: linear-gradient(90deg, rgba(14,15,13,.83), rgba(14,15,13,.55) 60%, rgba(14,15,13,.30)), url("assets/images/refkey-texture-dark.webp") center / cover no-repeat var(--ink); }
.blog-header h1 { font-size: clamp(40px,5vw,67px); }
.blog-header p { max-width: 620px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 18px; }
.topic-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 42px; }
.topic-nav a { display: grid; gap: 5px; min-height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.topic-nav a:hover { border-color: rgba(175,136,49,.65); color: var(--ink); box-shadow: 0 12px 28px rgba(12,13,10,.08); transform: translateY(-2px); }
.topic-nav strong { font-size: 17px; letter-spacing: -.02em; }
.topic-nav span { color: var(--muted); font-size: 13px; line-height: 1.38; }
.blog-header .topic-nav { margin-top: 28px; max-width: 980px; }
.blog-header .topic-nav a { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: var(--white); }
.blog-header .topic-nav a:hover { border-color: rgba(239,209,139,.75); box-shadow: none; }
.blog-header .topic-nav span { color: rgba(255,255,255,.67); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 54px 0 88px; }
.article-card { padding: 0; overflow: hidden; }
.article-card__visual { display: grid; min-height: 173px; padding: 23px; align-items: end; color: var(--gold-light); background: linear-gradient(135deg, #2d2e27, #151613); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.article-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.article-card__meta { color: #8b6a20; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.article-card h2 { margin-top: 12px; font-size: 24px; font-weight: 730; }
.article-card p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.article-card .link-arrow { margin-top: auto; }
.empty-state { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--white); }
.single-article { max-width: 850px; padding: 72px 0 90px; }
.single-article__meta { color: #87641e; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.single-article h1 { margin-top: 15px; font-size: clamp(38px,5vw,65px); }
.single-article .entry-content { margin-top: 40px; }

.site-footer { color: rgba(255,255,255,.75); background: #10110f; }
.footer-top { display: grid; grid-template-columns: 1.2fr .72fr .84fr .94fr; gap: 36px; padding: 63px 0 40px; }
.footer-top .brand { margin-bottom: 18px; }
.footer-description { max-width: 370px; margin: 0; font-size: 14px; }
.footer-heading { color: var(--gold-light); font-size: 12px; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; margin: 16px 0 0; }
.footer-links a { color: rgba(255,255,255,.76); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--gold-light); }
.footer-requisites { display: grid; gap: 7px; margin: 18px 0 0; color: rgba(255,255,255,.6); font-size: 13px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 0; border-top: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.46); font-size: 12px; }

@media (max-width: 1180px) {
  .header-actions .button { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav { display: none; position: absolute; top: 82px; right: 0; left: 0; padding: 18px 24px 25px; border-bottom: 1px solid rgba(255,255,255,.12); background: var(--ink); box-shadow: 0 20px 36px rgba(0,0,0,.24); }
  .main-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
  .main-nav a { padding: 12px 10px; font-size: 15px; }
}

@media (max-width: 980px) {
	.hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
	.service-detail-grid { grid-template-columns: 1fr; }
  .hero-side { max-width: 560px; }
  .direction-grid, .service-grid, .article-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .footer-top > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .header-inner { min-height: 69px; }
  .brand { width: min(218px, calc(100vw - 118px)); }
  .main-nav { top: 69px; padding: 18px 16px 25px; }
  .main-nav.is-open { grid-template-columns: 1fr; gap: 2px; }
  .main-nav a { padding: 12px 10px; font-size: 16px; }
  .hero { padding: 72px 0 56px; }
  .hero-grid { gap: 34px; }
  .hero-side { padding: 24px; }
  .section { padding: 62px 0; }
  .direction-grid, .service-grid, .article-grid, .blog-grid, .stat-grid { grid-template-columns: 1fr; }
  .topic-nav { grid-template-columns: 1fr; }
  .direction-card { min-height: 270px; }
  .process-list { grid-template-columns: 1fr; gap: 28px; }
  .process-list::before { top: 25px; right: auto; bottom: 25px; left: 25px; width: 1px; height: auto; }
  .process-item { min-height: 92px; padding: 0 0 0 75px; }
  .process-item__number { position: absolute; top: 0; left: 0; width: 51px; height: 51px; }
  .process-item h3 { margin-top: 0; padding-top: 2px; }
  .process-item p { margin-top: 10px; }
  .faq-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-top > :first-child { grid-column: auto; }
  .footer-bottom { display: grid; }
  .page-layout { padding: 48px 0 65px; }
  .blog-header { padding: 54px 0 36px; }
  .contact-map iframe { min-height: 340px; }
  .contact-map { padding: 62px 0; }
}
