/*
Theme Name: EC-EXPERT Modern 2026
Theme URI: https://ec-expert.ru/
Author: EC-EXPERT
Description: Современная тема сайта EC-EXPERT с адаптивной страницей, формой заявки и защитой от спама.
Version: 1.1.0
Text Domain: ec-expert-modern-2026
*/

:root {
  --ink: #132233;
  --muted: #5d6976;
  --line: #dbe4eb;
  --blue: #1964e6;
  --blue-dark: #104cb9;
  --green: #48a95b;
  --green-dark: #307f41;
  --paper: #f6f9fc;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(17, 42, 68, .14);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -60px; padding: 10px 16px; background: var(--ink); color: var(--white); z-index: 100; }
.skip-link:focus { top: 16px; }
.eyebrow { margin: 0 0 12px; color: var(--green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.section { padding: 92px 0; }
.section--soft { background: var(--paper); }
.section__heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section__heading h2 { margin: 0; font-size: clamp(1.85rem, 3vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.section__heading p { margin: 14px 0 0; color: var(--muted); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(219,228,235,.9); backdrop-filter: blur(14px); }
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span { font-size: 1.08rem; }
.header-contacts { display: flex; justify-content: flex-end; align-items: center; gap: 18px; color: var(--muted); font-size: .84rem; }
.header-contacts strong, .header-contacts a { color: var(--ink); text-decoration: none; }
.menu-toggle { display: none; appearance: none; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--white); font-weight: 700; }
.site-nav { border-top: 1px solid var(--line); }
.site-nav__list { display: flex; justify-content: center; gap: 6px; margin: 0; padding: 8px 0; list-style: none; overflow-x: auto; }
.site-nav a { display: inline-block; padding: 7px 11px; color: #415162; text-decoration: none; font-size: .86rem; font-weight: 650; white-space: nowrap; border-radius: 8px; transition: background-color .18s ease, color .18s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); background: #edf4ff; }

.hero { position: relative; isolation: isolate; min-height: 560px; display: grid; align-items: center; color: var(--white); overflow: hidden; background: #172619; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,13,19,.88), rgba(5,19,24,.64) 54%, rgba(2,8,10,.42)), url('assets/0010039ddbf9d723c21121e4ad7ef2d0.jpg') center / cover; }
.hero__content { max-width: 750px; padding: 90px 0; }
.hero h1 { max-width: 670px; margin: 0; font-size: clamp(2.5rem, 6vw, 5.3rem); line-height: .98; letter-spacing: -.065em; }
.hero p:not(.eyebrow) { max-width: 620px; margin: 24px 0 0; font-size: clamp(1rem, 2vw, 1.22rem); color: rgba(255,255,255,.9); }
.hero .eyebrow { color: #a8efb5; }
.hero__proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 38px; }
.hero__proof div { padding: 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(9, 23, 27, .37); font-size: .82rem; font-weight: 700; }

.quick-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 780px; margin: 0 auto; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.quick-search input { min-width: 0; padding: 13px 14px; border: 0; outline: 0; color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 19px; border: 1px solid transparent; border-radius: 10px; color: var(--white); background: var(--blue); font-weight: 800; text-decoration: none; transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.button:hover, .button:focus-visible { background: var(--blue-dark); box-shadow: 0 8px 21px rgba(25,100,230,.25); }
.button:active { transform: scale(.97); }
.button--green { background: var(--green); }
.button--green:hover, .button--green:focus-visible { background: var(--green-dark); box-shadow: 0 8px 21px rgba(72,169,91,.25); }
.button--ghost { color: var(--blue); background: transparent; border-color: #b7cff9; }
.button--ghost:hover, .button--ghost:focus-visible { background: #edf4ff; box-shadow: none; }
.search-note { margin: 18px auto 0; max-width: 730px; color: var(--muted); text-align: center; font-size: .9rem; }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.feature__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--blue); background: #edf4ff; font-size: 1.3rem; }
.feature h3 { margin: 18px 0 8px; font-size: 1.08rem; line-height: 1.2; }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }
.feature--accent { color: var(--white); border-color: transparent; background: linear-gradient(135deg, #1964e6, #153c90); }
.feature--accent .feature__icon { color: #fff; background: rgba(255,255,255,.16); }
.feature--accent p { color: rgba(255,255,255,.78); }

.lead-panel { display: grid; grid-template-columns: .87fr 1.13fr; overflow: hidden; border-radius: 24px; background: var(--ink); box-shadow: var(--shadow); }
.lead-panel__intro { padding: 48px; color: var(--white); background: linear-gradient(145deg, rgba(8,20,33,.98), rgba(19,68,154,.92)), url('assets/77e3dc1a71c8abdd6e2943d716658f5f.jpg') center / cover; }
.lead-panel__intro h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.06; }
.lead-panel__intro p { color: rgba(255,255,255,.82); }
.lead-panel__intro ul { margin: 25px 0 0; padding: 0; list-style: none; }
.lead-panel__intro li { display: flex; gap: 9px; margin: 10px 0; }
.lead-panel__intro li::before { content: "✓"; color: #a8efb5; font-weight: 800; }
.lead-form { padding: 34px; background: var(--white); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field--wide { grid-column: 1 / -1; }
.form-field label { color: #344253; font-size: .86rem; font-weight: 750; }
.form-field input, .form-field textarea { width: 100%; padding: 12px 13px; border: 1px solid #cbd7e1; border-radius: 9px; color: var(--ink); background: #fff; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.form-field textarea { min-height: 105px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25,100,230,.12); }
.captcha { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px dashed #a9bbc9; border-radius: 9px; background: #f7fafc; }
.captcha input { max-width: 105px; }
.agreement { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; color: var(--muted); font-size: .8rem; }
.agreement input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); }
.agreement a { color: var(--blue); }
.form-honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.form-notice { margin: 0 0 18px; padding: 11px 13px; border-radius: 9px; font-size: .9rem; }
.form-notice--success { color: #155d24; background: #eaf8ed; }
.form-notice--error { color: #8c1b22; background: #fff0f1; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: process; }
.step { position: relative; min-height: 210px; padding: 24px; border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); background: var(--white); box-shadow: 0 8px 24px rgba(21,49,76,.08); }
.step::before { counter-increment: process; content: "0" counter(process); display: block; margin-bottom: 30px; color: #a3b2c0; font-size: 1.5rem; font-weight: 850; }
.step h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.2; }
.step p { margin: 0; color: var(--muted); font-size: .86rem; }

.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq summary { padding: 18px 20px; cursor: pointer; font-weight: 750; }
.faq p { margin: 0; padding: 0 20px 19px; color: var(--muted); }
.contact-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 38px; border-radius: 24px; color: var(--white); background: linear-gradient(132deg, #104cb9, #2571ee); }
.contact-card h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.06; }
.contact-card p { margin: 12px 0 0; color: rgba(255,255,255,.86); }
.contact-card .button { color: var(--blue); background: var(--white); }

.site-footer { padding: 45px 0 28px; color: #dce7f0; background: #102130; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; }
.site-footer h2 { margin: 0 0 12px; color: #fff; font-size: 1.05rem; }
.site-footer p, .site-footer a { margin: 5px 0; color: #c3d0dc; font-size: .91rem; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 35px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); color: #9cb0c1; font-size: .78rem; }
.cookie-banner { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: min(390px, calc(100% - 36px)); padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 12px; color: var(--muted); font-size: .82rem; }
.cookie-banner .button { min-height: 38px; padding: 7px 12px; font-size: .84rem; }

@media (max-width: 900px) {
  .header-main { grid-template-columns: auto 1fr auto; }
  .header-contacts { display: none; }
  .menu-toggle { display: inline-flex; justify-self: end; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .site-nav__list { display: grid; justify-content: stretch; padding: 12px 20px; }
  .site-nav a { display: block; }
  .grid--3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-panel { grid-template-columns: 1fr; }
  .contact-card, .footer-grid { grid-template-columns: 1fr; }
  .contact-card .button { justify-self: start; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 64px 0; }
  .header-main { min-height: 65px; }
  .brand span { font-size: 1rem; }
  .hero { min-height: 590px; }
  .hero__content { padding: 72px 0; }
  .hero__proof, .grid--3, .grid--2, .steps, .form-grid { grid-template-columns: 1fr; }
  .quick-search { grid-template-columns: 1fr; }
  .quick-search .button { width: 100%; }
  .lead-panel__intro, .lead-form { padding: 28px 20px; }
  .step { min-height: auto; }
  .footer-bottom { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
