:root { --paper:#f6f4ed; --ink:#131313; --muted:#6e6d67; --lime:#c9f400; --line:#d8d5cc; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:Arial, Helvetica, sans-serif; }
a { color:inherit; text-decoration:none; }
button, input, select { font:inherit; }
button, a { -webkit-tap-highlight-color:transparent; }

.header { height:92px; padding:0 3.4vw; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:40px; border-bottom:1px solid var(--line); position:relative; z-index:20; background:rgba(246,244,237,.94); backdrop-filter:blur(14px); }
.logo { display:flex; align-items:flex-start; gap:10px; line-height:.86; }
.logo span { font-size:52px; font-weight:900; letter-spacing:-5px; }
.logo small { font-size:17px; line-height:1.05; margin-top:5px; }
.nav { display:flex; justify-content:center; gap:31px; font-size:15px; }
.nav a { position:relative; }
.nav a:not(:last-child)::after { content:"/"; color:var(--lime); position:absolute; right:-18px; }
.nav a:hover { opacity:.55; }
.headerCta { background:var(--ink); color:white; padding:15px 20px; font-size:14px; font-weight:700; }
.headerCta span { color:var(--lime); margin-left:16px; }
.menuButton { display:none; }

.hero { min-height:calc(100vh - 92px); padding:64px 3.4vw 0; display:grid; grid-template-columns:minmax(540px, 1.05fr) minmax(440px, .95fr); grid-template-rows:1fr auto; gap:30px 46px; overflow:hidden; background-image:radial-gradient(#d9d6cb 0.7px, transparent 0.7px); background-size:18px 18px; }
.heroCopy { position:relative; z-index:2; padding:18px 0 50px; }
.eyebrow, .sectionHead>p, .approachTitle>p, .contactCopy>p:first-child { text-transform:uppercase; font-size:12px; font-weight:800; letter-spacing:.15em; display:flex; align-items:center; gap:10px; }
.eyebrow span { width:34px; height:4px; background:var(--lime); }
h1 { margin:34px 0 24px; font-size:clamp(58px,6.2vw,101px); line-height:.81; letter-spacing:-.075em; font-weight:900; }
h1 em { font-size:.48em; line-height:1.05; letter-spacing:-.045em; font-style:normal; font-weight:500; display:inline-block; margin-top:14px; }
.lead { color:var(--muted); font-size:18px; line-height:1.45; max-width:570px; margin:0; }
.heroActions { display:flex; gap:14px; margin-top:32px; }
.button { min-height:58px; padding:0 22px; display:flex; align-items:center; justify-content:space-between; gap:30px; font-weight:700; border:1px solid var(--ink); }
.button span { font-size:22px; }
.primary { background:var(--lime); border-color:var(--lime); min-width:310px; clip-path:polygon(0 5%, 99% 0, 100% 94%, 1% 100%); }
.primary:hover { background:var(--ink); color:white; }
.secondary:hover { background:white; }
.heroVisual { min-height:610px; position:relative; display:flex; align-items:center; justify-content:center; }
.heroVisual img { width:100%; max-width:690px; max-height:710px; object-fit:contain; position:relative; z-index:2; filter:drop-shadow(0 16px 22px rgba(20,20,20,.1)); }
.limeDisc { position:absolute; width:360px; height:360px; border-radius:50%; background:var(--lime); top:6%; right:3%; }
.scribble { position:absolute; bottom:28px; right:0; color:var(--lime); font-size:76px; font-weight:900; letter-spacing:-20px; transform:rotate(-22deg); z-index:3; }
.stats { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--ink); }
.stats div { min-height:122px; padding:22px 24px 20px 0; display:flex; flex-direction:column; justify-content:center; border-right:1px solid var(--line); }
.stats div:not(:first-child) { padding-left:30px; }
.stats strong { font-size:42px; letter-spacing:-.055em; }
.stats span { color:var(--muted); font-size:13px; margin-top:5px; }

.section { padding:120px 3.4vw; }
.sectionHead { display:grid; grid-template-columns:1fr 2fr 1fr; align-items:end; gap:30px; margin-bottom:60px; }
.sectionHead p { margin:0; align-self:start; }
.sectionHead h2, .approachTitle h2, .contact h2 { font-size:clamp(47px,5vw,78px); line-height:.93; letter-spacing:-.06em; margin:0; }
.sectionHead>span { color:var(--muted); line-height:1.5; font-size:15px; max-width:280px; }
.services { background:#fff; }
.serviceGrid { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--ink); border-left:1px solid var(--line); }
.service { min-height:280px; padding:27px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); position:relative; transition:.25s ease; }
.service>span { color:#99978f; font-size:13px; }
.service h3 { font-size:24px; letter-spacing:-.035em; max-width:250px; margin:50px 0 14px; }
.service p { color:var(--muted); line-height:1.5; max-width:320px; font-size:14px; }
.service b { position:absolute; top:24px; right:24px; font-size:22px; font-weight:400; }
.service:hover { background:var(--lime); transform:translateY(-4px); }
.service:hover p { color:var(--ink); }

.taskGrid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.task { min-height:310px; padding:25px; border:1px solid var(--ink); position:relative; display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden; }
.task::before { content:""; width:160px; height:160px; border-radius:50%; background:var(--lime); position:absolute; top:-80px; right:-60px; transition:.3s; }
.task:nth-child(even)::before { background:#dedbd2; border-radius:0; transform:rotate(16deg); }
.task small { position:absolute; top:26px; left:25px; text-transform:uppercase; font-size:11px; font-weight:800; letter-spacing:.12em; }
.taskIndex { position:absolute; top:20px; right:24px; font-size:48px; font-weight:900; letter-spacing:-.08em; z-index:1; }
.task h3 { font-size:25px; margin:0 0 12px; letter-spacing:-.04em; }
.task p { margin:0; color:var(--muted); line-height:1.5; font-size:14px; max-width:330px; }
.task:hover::before { transform:scale(1.18); }

.approach { background:var(--ink); color:white; padding:115px 3.4vw; display:grid; grid-template-columns:1fr 1.35fr; gap:8vw; }
.approachTitle h2 { margin-top:46px; }
.approachTitle i { color:var(--lime); font-style:normal; }
.approachSteps { border-top:1px solid #444; }
.approachSteps article { display:grid; grid-template-columns:60px 170px 1fr; gap:20px; padding:27px 0; border-bottom:1px solid #444; align-items:start; }
.approachSteps span { color:var(--lime); font-size:12px; }
.approachSteps h3 { font-size:20px; margin:0; }
.approachSteps p { color:#a6a6a0; margin:0; line-height:1.55; font-size:14px; }

.cases { background:#fff; }
.caseTabs { display:flex; flex-wrap:wrap; border-bottom:1px solid var(--ink); }
.caseTabs button { border:0; background:none; padding:16px 22px; cursor:pointer; color:#777; border-bottom:4px solid transparent; }
.caseTabs button.active { color:var(--ink); border-color:var(--lime); font-weight:700; }
.caseCard { min-height:360px; display:grid; grid-template-columns:.7fr 1.6fr 1fr; gap:40px; align-items:center; padding:46px; background:var(--paper); margin-top:25px; position:relative; overflow:hidden; }
.caseCard::after { content:""; width:340px; height:340px; border-radius:50%; background:var(--lime); position:absolute; right:-130px; bottom:-200px; }
.caseNumber { font-size:130px; font-weight:900; color:#dfdcd2; letter-spacing:-.09em; }
.caseContent small { text-transform:uppercase; letter-spacing:.12em; font-weight:700; font-size:11px; }
.caseContent h3 { font-size:54px; letter-spacing:-.06em; margin:15px 0; }
.caseContent p { color:var(--muted); max-width:490px; line-height:1.55; }
.caseResult { display:flex; flex-direction:column; position:relative; z-index:1; }
.caseResult strong { font-size:48px; letter-spacing:-.06em; }
.caseResult span { font-size:13px; margin-top:8px; }

.contact { padding:110px 3.4vw; display:grid; grid-template-columns:.85fr 1.15fr; gap:7vw; background:var(--lime); }
.contactCopy h2 { margin:48px 0 26px; }
.contactLead { max-width:480px; font-size:17px; line-height:1.55; }
.contactNote { display:flex; gap:18px; align-items:center; margin-top:50px; }
.contactNote strong { font-size:36px; }
.contactNote span { max-width:200px; font-size:13px; line-height:1.35; }
form { background:var(--paper); padding:36px; display:grid; grid-template-columns:1fr 1fr; gap:22px; align-content:center; }
label { display:flex; flex-direction:column; gap:9px; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.09em; }
input, select { width:100%; border:0; border-bottom:1px solid #aaa79f; background:transparent; padding:13px 0; outline:none; color:var(--ink); text-transform:none; letter-spacing:0; }
input:focus, select:focus { border-color:var(--ink); }
.wide { grid-column:1/-1; }
.check { flex-direction:row; align-items:flex-start; text-transform:none; letter-spacing:0; font-weight:400; line-height:1.4; color:var(--muted); }
.check input { width:17px; height:17px; margin:0; accent-color:var(--ink); }
.check a { text-decoration:underline; }
.submit { border:0; min-height:62px; background:var(--ink); color:white; padding:0 24px; display:flex; align-items:center; justify-content:space-between; font-weight:700; cursor:pointer; }
.submit span { color:var(--lime); font-size:23px; }
.success { background:var(--paper); padding:60px; display:flex; flex-direction:column; justify-content:center; }
.success>span { background:var(--ink); color:var(--lime); width:48px; height:48px; display:grid; place-items:center; border-radius:50%; font-size:24px; }
.success h3 { font-size:42px; margin:28px 0 12px; }
.success p { color:var(--muted); line-height:1.5; max-width:460px; }
.success button { align-self:flex-start; margin-top:25px; background:none; border:0; border-bottom:1px solid; padding:4px 0; cursor:pointer; }

footer { padding:48px 3.4vw; background:var(--ink); color:white; display:grid; grid-template-columns:1.2fr 1fr 1.3fr auto; gap:40px; align-items:center; }
footer p { color:#8f8f89; line-height:1.5; font-size:14px; }
footer>div { display:flex; flex-direction:column; gap:9px; color:#aaa; font-size:12px; }
.footerCta { border-bottom:1px solid var(--lime); padding-bottom:5px; }

@media (max-width:1000px) {
  .header { grid-template-columns:auto auto; justify-content:space-between; height:76px; }
  .headerCta { display:none; }
  .menuButton { display:block; border:0; background:none; text-transform:uppercase; font-size:12px; font-weight:800; }
  .nav { display:none; position:absolute; top:76px; left:0; right:0; background:var(--paper); padding:28px 3.4vw; flex-direction:column; align-items:flex-start; gap:20px; border-bottom:1px solid var(--ink); }
  .nav.open { display:flex; }
  .nav a::after { display:none; }
  .logo span { font-size:42px; }
  .logo small { font-size:14px; }
  .hero { grid-template-columns:1fr; padding-top:40px; }
  .heroCopy { padding-bottom:0; }
  .heroVisual { min-height:500px; }
  .heroVisual img { max-height:560px; }
  .stats { grid-column:1; grid-template-columns:1fr 1fr; }
  .sectionHead { grid-template-columns:1fr 2fr; }
  .sectionHead>span { display:none; }
  .serviceGrid, .taskGrid { grid-template-columns:1fr 1fr; }
  .approach { grid-template-columns:1fr; }
  .caseCard { grid-template-columns:.5fr 1.5fr; }
  .caseResult { grid-column:2; }
  .contact { grid-template-columns:1fr; }
  footer { grid-template-columns:1fr 1fr; }
}

@media (max-width:620px) {
  .header { padding:0 20px; }
  .hero { padding:30px 20px 0; gap:10px; }
  h1 { font-size:53px; }
  h1 em { font-size:.45em; }
  .lead { font-size:16px; }
  .heroActions { flex-direction:column; }
  .primary { min-width:0; }
  .heroVisual { min-height:390px; }
  .limeDisc { width:230px; height:230px; }
  .stats strong { font-size:31px; }
  .stats div, .stats div:not(:first-child) { min-height:105px; padding:18px 12px; }
  .section { padding:82px 20px; }
  .sectionHead { display:block; }
  .sectionHead h2 { margin:28px 0 0; font-size:44px; }
  .serviceGrid, .taskGrid { grid-template-columns:1fr; }
  .service { min-height:235px; }
  .approach { padding:82px 20px; }
  .approachTitle h2 { font-size:44px; }
  .approachSteps { margin-top:55px; }
  .approachSteps article { grid-template-columns:34px 1fr; }
  .approachSteps p { grid-column:2; }
  .caseTabs { flex-wrap:nowrap; overflow-x:auto; }
  .caseTabs button { white-space:nowrap; }
  .caseCard { grid-template-columns:1fr; padding:28px; }
  .caseNumber { font-size:80px; }
  .caseResult { grid-column:1; }
  .caseContent h3 { font-size:42px; }
  .contact { padding:82px 20px; }
  .contact h2 { font-size:49px; }
  form { grid-template-columns:1fr; padding:24px; }
  form label { grid-column:1; }
  footer { padding:45px 20px; grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { transition:none !important; } }
/* Блок успешной отправки */
.success {
  display: none; /* скрыт по умолчанию, но при hidden="false" показываем */
  background: #e6f7e6;
  border-left: 6px solid #2e7d32;
  padding: 24px 32px;
  border-radius: 12px;
  margin-top: 20px;
  text-align: center;
  animation: fadeSlideIn 0.4s ease;
}

.success[hidden] {
  display: none !important;
}

.success:not([hidden]) {
  display: block !important;
}

.success span {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}

.success h3 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #1e3c1e;
}

.success p {
  margin: 0;
  font-size: 16px;
  color: #2e5c2e;
}

/* Анимация появления */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Если форма скрыта — тоже плавно */
#estimate-form[hidden] {
  display: none !important;
}
