/* ══ shilin.ru ═══════════════════════════════════════════════════════
   Тёмная страница специалиста: янтарный акцент, крупная типографика,
   тонкие надзаголовки. Tailwind отвечает за сетки и отступы, здесь —
   палитра и собственные компоненты. */

:root {
  --bg:      #1F232B;
  --bg-2:    #262B35;
  --card:    #2B313C;
  --line:    #39414F;
  --accent:   #F5A524;
  --accent-2: #FFB94A;
  --text:    #ECEFF4;
  --text-2:  #A9B2C0;
  --text-3:  #7C8798;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Roboto', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ── Надзаголовок «— Услуги» ──────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
.section-title { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.12; }
.lead { color: var(--text-2); line-height: 1.65; font-size: 16px; margin: 0; }

/* ── Шапка ────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(31,35,43,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
/* Логотип — свг с currentColor, поэтому цвет задаём здесь и он
   одинаково ложится и на тёмный фон, и на светлый. */
.logo { display: flex; align-items: center; color: var(--accent); flex-shrink: 0; }
.logo svg { height: 26px; width: auto; display: block; }
.logo:hover { color: var(--accent-2); }
.footer .logo svg { height: 30px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--accent); color: #1F232B; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 13px 26px; border-radius: 10px; transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  padding: 12px 24px; font-size: 15px; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.header .btn { padding: 10px 20px; font-size: 14.5px; }

/* ── Первый экран ─────────────────────────────────────────────────── */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: var(--accent); opacity: .07; filter: blur(90px);
  top: -160px; right: -80px; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr);
               gap: clamp(32px,5vw,72px); align-items: center; position: relative; }
.hero h1 { font-size: clamp(38px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -.04em;
            overflow-wrap: normal; hyphens: manual; }
.hero h1 .dot { color: var(--accent); }
.rule { width: 62px; height: 4px; background: var(--accent); border-radius: 2px; margin: 26px 0 24px; }
.role { font-size: clamp(17px, 1.7vw, 21px); color: var(--text); font-weight: 500; line-height: 1.45; margin: 0 0 18px; }
.hero .lead { max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.photo { position: relative; justify-self: center; width: min(420px, 100%); }
.photo img { width: 100%; border-radius: 20px; }
.photo::after {
  content: ''; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent); border-radius: 20px; z-index: -1; opacity: .55;
}
.photo-badge {
  position: absolute; left: -18px; bottom: 26px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.photo-badge b { display: block; font-size: 22px; color: var(--accent); line-height: 1; }
.photo-badge span { font-size: 12.5px; color: var(--text-3); }

/* ── Секции ───────────────────────────────────────────────────────── */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .lead { margin-top: 14px; }

/* Услуги */
.services { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 24px 28px; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-3px); border-color: rgba(245,165,36,.5); }
.service.accent { background: var(--accent); border-color: var(--accent); color: #1F232B; }
.service .material-symbols-outlined { font-size: 28px; color: var(--accent); margin-bottom: 18px; }
.service.accent .material-symbols-outlined { color: #1F232B; }
.service h3 { font-size: 19px; margin-bottom: 10px; line-height: 1.25; }
.service p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.service.accent p { color: rgba(31,35,43,.78); }
.service ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.service li { font-size: 13.5px; color: var(--text-3); padding-left: 15px; position: relative; }
.service li::before { content: ''; position: absolute; left: 0; top: .55em;
                     width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.service.accent li { color: rgba(31,35,43,.72); }
.service.accent li::before { background: #1F232B; }

/* Проекты */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.project {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project .tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(245,165,36,.12); border-radius: 999px; padding: 6px 12px;
}
.project .term { font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
.project h3 { font-size: 18px; line-height: 1.3; }
.project p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); flex: 1; }
.project .result { font-size: 13.5px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 12px; }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.stat { border-left: 2px solid var(--accent); padding-left: 20px; }
.stat b { display: block; font-size: clamp(30px,3.4vw,44px); line-height: 1; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--text-2); line-height: 1.45; }

/* ── Форма ────────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
               gap: clamp(28px,4vw,60px); align-items: start; }
.form-grid > * { min-width: 0; }
.form-grid > *:last-child { align-self: start; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px,3vw,34px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; color: var(--text); font-family: inherit; font-size: 15px;
  transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field textarea { min-height: 96px; resize: vertical; }
.field.error input, .field.error textarea { border-color: #E5484D; }
.field-error { display: block; margin-top: 7px; font-size: 13px; color: #FF8A8E; }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.way { position: relative; }
.way input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.way span {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 8px;
  font-size: 14px; color: var(--text-2); cursor: pointer; transition: all .18s ease;
}
.way span .material-symbols-outlined { font-size: 21px; }
.way input:checked + span { border-color: var(--accent); color: var(--accent); background: rgba(245,165,36,.08); }
.way input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.consents { display: grid; gap: 14px; margin: 22px 0 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent span { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent.required span::after { content: ' *'; color: var(--accent); }
/* Пометку о добровольности рисуем текстом в разметке, а не стилями:
   иначе её не видно ни без css, ни в читалке экрана. */
.consent.optional span b { color: var(--accent); font-weight: 700; }
.form .btn { width: 100%; padding: 15px; font-size: 16px; }
.note { margin: 14px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.55; }
.note a { color: var(--text-2); text-decoration: underline; }

.done {
  background: rgba(245,165,36,.10); border: 1px solid rgba(245,165,36,.35);
  border-radius: 16px; padding: 26px 28px;
}
.done h3 { color: var(--accent); font-size: 21px; margin-bottom: 10px; }
.done p { margin: 0; color: var(--text-2); line-height: 1.6; }
.form-error {
  background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.4);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 20px;
  font-size: 14px; color: #FF9B9E;
}

/* Что будет дальше — колонка рядом с формой */
.steps { display: grid; gap: 22px; margin-top: 30px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.step i {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(245,165,36,.12);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 700; font-size: 14px;
}
.step b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ── Подвал ───────────────────────────────────────────────────────── */
.footer { background: #191D24; border-top: 1px solid var(--line); padding: 54px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 34px; }
.footer h4 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
             color: var(--text-3); margin: 0 0 16px; }
.footer p, .footer li { font-size: 14px; color: var(--text-2); line-height: 1.65; margin: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--accent); }
.legal { font-size: 13.5px; color: var(--text-3); line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex;
              justify-content: space-between; gap: 18px; flex-wrap: wrap;
              font-size: 13px; color: var(--text-3); }

/* ── Cookie ───────────────────────────────────────────────────────── */
.cookiebar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 90;
  max-width: 720px; margin: 0 auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  display: none; gap: 18px; align-items: center; flex-wrap: wrap;
}
.cookiebar.show { display: flex; }
.cookiebar p { margin: 0; flex: 1 1 300px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cookiebar a { color: var(--accent); text-decoration: underline; }
.cookiebar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookiebar .btn, .cookiebar .btn-ghost { padding: 10px 18px; font-size: 14px; }

/* ── Документы ────────────────────────────────────────────────────── */
.doc { max-width: 860px; margin: 0 auto; padding: 44px 24px 72px; }
.doc h1 { font-size: clamp(26px,3.4vw,38px); line-height: 1.15; margin-bottom: 12px; }
.doc .doc-date { color: var(--text-3); font-size: 14px; margin-bottom: 34px; }
.doc h2 { font-size: 20px; margin: 34px 0 12px; }
.doc h3 { font-size: 16.5px; margin: 22px 0 10px; color: var(--text); }
.doc p, .doc li { color: var(--text-2); line-height: 1.7; font-size: 15px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 7px; }
.doc a { color: var(--accent); text-decoration: underline; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left;
                             color: var(--text-2); vertical-align: top; }
.doc th { color: var(--text); font-weight: 600; background: var(--bg-2); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 14px; margin-bottom: 26px; }
.back:hover { color: var(--accent); }

/* ── Узкие экраны ─────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .services { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .projects { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats   { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .photo { justify-self: start; width: min(320px, 70%); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav { display: none; }
  .services, .projects, .stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .ways { grid-template-columns: 1fr; }
  .way span { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 13px 16px; }
  .photo-badge { left: auto; right: 10px; bottom: -14px; }
  .cookiebar { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookiebar-actions { width: 100%; }
  .cookiebar .btn, .cookiebar .btn-ghost { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service:hover, .btn:hover { transform: none; }
}

/* Прямой контакт под шагами: без него левая колонка пустовала рядом
   с высокой формой, и та казалась уехавшей вниз. */
.direct { margin-top: 30px; padding: 22px 24px; border: 1px solid var(--line);
          border-radius: 16px; background: rgba(255,255,255,.02); }
.direct b { display: block; font-size: 16px; margin-bottom: 8px; }
.direct p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.direct p:last-child { margin-bottom: 0; }
.direct a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.direct-note { font-size: 13px; color: var(--text-3); }
@media (max-width: 1040px) { .direct { margin-top: 22px; } }

/* Блок «о себе» со второй фотографией */
.about { display: grid; grid-template-columns: 380px minmax(0,1fr); gap: clamp(26px,4vw,56px);
         align-items: start; margin-bottom: 52px; }
.about-photo { position: relative; }
.about-photo img { width: 100%; border-radius: 18px; }
.about-caption { display: block; margin-top: 12px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.about-text p { margin: 0 0 16px; color: var(--text-2); line-height: 1.7; font-size: 16px; }
.about-text p:last-child { margin-bottom: 0; }
@media (max-width: 1040px) {
  .about { grid-template-columns: 1fr; gap: 24px; margin-bottom: 38px; }
  .about-photo { max-width: 340px; }
}

/* Российский контур: то, что спрашивают проверяющие */
.kontur { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.kontur-item { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
               background: var(--card); border: 1px solid var(--line);
               border-radius: 16px; padding: 22px 24px; }
.kontur-item .material-symbols-outlined {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(245,165,36,.12);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.kontur-item b { display: block; font-size: 16.5px; margin-bottom: 8px; }
.kontur-item p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 900px) {
  .kontur { grid-template-columns: 1fr; }
  .kontur-item { padding: 18px; gap: 12px; grid-template-columns: 40px 1fr; }
  .kontur-item .material-symbols-outlined { width: 40px; height: 40px; }
}
