@charset "UTF-8";

:root {
  --navy: #06234e;
  --blue: #0067ff;
  --blue-hover: #0058df;
  --muted: #4e6c99;
  --eyebrow: #6381ac;
  --line: #d4dfec;
  --paper: #fdfdfe;
  --ice: #eaf4ff;
  --gutter: clamp(28px, 4.2vw, 88px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--paper); color: var(--navy); font-family: "Inter", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, h1, h2, p { margin: 0; }
button { border: 0; }
img { display: block; max-width: 100%; }
svg { display: block; flex: 0 0 auto; }
::selection { background: #c9e0ff; color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow { width: 21px; height: 21px; stroke-width: 1.6; }
.screen { min-height: 100vh; min-height: 100svh; scroll-snap-align: start; position: relative; }
.eyebrow { font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: .18em; color: var(--eyebrow); }
.eyebrow span { margin: 0 5px; }
h1, h2 { font-weight: 600; letter-spacing: -.055em; }
h1 { font-size: clamp(44px, 4.9vw, 84px); line-height: 1.02; }
h2 { font-size: clamp(32px, 3.15vw, 58px); line-height: 1.08; }
.lead { font-size: clamp(17px, 1.55vw, 24px); line-height: 1.45; letter-spacing: -.025em; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 60px; padding: 19px 29px; min-width: 272px; border-radius: 100px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 500; line-height: 1.3; transition: background .2s, transform .2s, box-shadow .2s; }
.button .arrow { transition: transform .2s; }
.button:active { transform: scale(.98); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 14px 20px; background: var(--navy); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Первый экран: фотография, текст и направления работы. */
.hero { height: 100vh; height: 100svh; min-height: 660px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 148px; }
.hero-main { display: grid; grid-template-columns: 43% 57%; grid-template-rows: minmax(0, 1fr); min-height: 0; min-width: 0; position: relative; overflow: hidden; }
.hero-copy { padding: 26px 0 46px var(--gutter); display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 2; min-width: 0; min-height: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(18px, 1.75vw, 27px); font-weight: 600; letter-spacing: -.055em; white-space: nowrap; }
.brand svg { width: 45px; height: 45px; }
.hero-message { margin-top: auto; margin-bottom: auto; padding: 26px 0 22px; }
.hero-eyebrow { margin-bottom: 29px; position: relative; }
.hero-eyebrow::before { content: ""; position: absolute; width: 1px; height: 72px; background: var(--line); top: 3px; left: -23px; }
.hero h1 { position: relative; z-index: 1; }
.hero h1 > span { display: block; }
.hero-last-line { white-space: nowrap; font-size: .92em; letter-spacing: -.06em; }
.hero-lead { margin: 19px 0 30px; }
.hero-stages { color: var(--eyebrow); font-size: clamp(7px, .62vw, 10px); font-weight: 500; letter-spacing: .11em; white-space: nowrap; }
.hero-stages i { font-style: normal; padding: 0 10px; color: #7e9cca; }
.hero-media { min-height: 0; min-width: 0; overflow: hidden; position: relative; }
.hero-media picture { position: absolute; inset: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 18%; }
.hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(253 253 254 / .92), rgb(253 253 254 / .38) 5%, transparent 17%); }
.service-strip { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); padding: 29px 2.8vw 26px; position: relative; z-index: 3; background: var(--paper); }
.service-strip a { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 15px; background: transparent; padding: 0 10px; border-left: 1px solid #bccde1; transition: color .2s; }
.service-strip a:first-child { border-left: 0; }
.service-strip .icon { width: 43px; height: 43px; stroke-width: 2; }
.service-strip span { font-size: clamp(10px, .86vw, 14px); font-weight: 500; text-transform: uppercase; text-align: center; line-height: 1.6; }

/* Услуги. */
.services { display: grid; grid-template-columns: 57% 1fr; gap: 4.2vw; padding: clamp(36px, 6vh, 74px) var(--gutter); align-items: center; }
.services::before { content: ""; position: absolute; height: 1px; top: 0; left: var(--gutter); right: var(--gutter); background: var(--line); }
.services-photo { align-self: stretch; min-height: 0; overflow: hidden; }
.services-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 15%; }
.services-photo { position: relative; }
.services-copy { padding: 10px 0; }
.services-copy .eyebrow { margin-bottom: 25px; }
.services-copy h2 { font-size: clamp(30px, 2.75vw, 49px); }
.services-copy .lead { margin: 19px 0 29px; font-size: clamp(16px, 1.35vw, 22px); }
.services-list { width: 100%; }
.services-list a { display: grid; grid-template-columns: 44px 1fr 20px; gap: 22px; align-items: center; min-height: clamp(63px, 8vh, 90px); width: 100%; background: transparent; text-align: left; border-top: 1px solid var(--line); transition: color .2s, background .2s; }
.services-list a .service-icon { width: 40px; height: 40px; }
.services-list a span { font-size: clamp(13px, 1.1vw, 18px); line-height: 1.45; letter-spacing: -.03em; }
.services-list a .arrow { color: var(--blue); transition: transform .2s; }

/* Диспетчеризация. */
.dispatch { display: grid; grid-template-columns: 40% 60%; align-items: center; padding: 70px var(--gutter); overflow: hidden; background: radial-gradient(ellipse at 70% 48%, #f4f9ff 0, #eaf4ff 65%, #e8f2ff 100%); }
.dispatch-copy { position: relative; z-index: 2; }
.dispatch-copy .eyebrow { margin-bottom: 29px; }
.dispatch-copy h2 { font-size: clamp(36px, 3.8vw, 68px); }
.dispatch-copy .lead { margin-top: 25px; font-size: clamp(17px, 1.4vw, 23px); }
.dispatch-art { width: 114%; margin-left: -7%; }
.dispatch-art img { width: 100%; height: auto; }

/* Объекты — лёгкая типографическая секция, как в референсе. */
.projects { display: flex; flex-direction: column; justify-content: center; padding: 80px var(--gutter); }
.projects-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.projects-heading .eyebrow { margin-bottom: 23px; }
.projects-heading h2 { font-size: clamp(34px, 3.8vw, 68px); }
.text-link { color: var(--blue); display: inline-flex; align-items: center; gap: 17px; font-size: 15px; white-space: nowrap; min-height: 44px; }
.project-list { display: grid; grid-template-columns: .94fr 1fr 1.17fr 1fr; margin-top: 70px; }
.project-list a { min-height: 108px; padding: 12px 35px; border-left: 1px solid #bccde1; display: flex; gap: 17px; align-items: center; justify-content: space-between; font-size: clamp(17px, 1.5vw, 25px); letter-spacing: -.035em; transition: color .2s; }
.project-list a:first-child { border-left: 0; padding-left: 0; }
.project-list a:last-child { padding-right: 0; }
.project-list .arrow { width: 19px; height: 19px; transition: transform .2s; }
.next-section { position: absolute; bottom: 39px; left: var(--gutter); width: 44px; height: 44px; display: grid; place-items: center; color: #7290b8; }
.next-section .icon { width: 25px; height: 25px; stroke-width: 1.4; }

/* Контакты. */
.contact { background: #113552; color: white; display: flex; align-items: center; padding: 80px var(--gutter); overflow: hidden; }
.contact-background { position: absolute; width: 100%; height: 100%; object-fit: cover; inset: 0; object-position: center; }
.contact::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 34 65 / .86), rgb(5 35 65 / .63) 62%, rgb(5 35 65 / .74)); }
.contact-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 285px; gap: 50px; align-items: center; width: 100%; }
.contact-copy .eyebrow { color: #c4d4e7; margin-bottom: 24px; }
.contact h2 { font-size: clamp(40px, 4.6vw, 82px); letter-spacing: -.045em; }
.contact .lead { color: #e2eaf5; margin-top: 21px; margin-bottom: 35px; font-size: clamp(19px, 1.8vw, 29px); }
.whatsapp-button { min-width: 336px; justify-content: flex-start; gap: 14px; }
.whatsapp-button .arrow { margin-left: auto; }
.whatsapp-icon { width: 31px; height: 31px; stroke-width: 1.4; }
.contact-stages { list-style: none; margin: 0; padding: 0 0 0 36px; border-left: 1px solid rgb(211 227 246 / .55); display: flex; flex-direction: column; gap: 26px; }
.contact-stages li { display: flex; gap: 20px; align-items: center; font-size: 17px; line-height: 1.4; }
.contact-stages .icon { width: 39px; height: 39px; stroke-width: 1.6; }
.back-to-top { position: absolute; z-index: 1; bottom: 35px; right: var(--gutter); display: flex; align-items: center; gap: 13px; min-height: 44px; font-size: 12px; color: #c4d4e7; }
.back-to-top .arrow { transform: rotate(-90deg); }

@media (hover: hover) {
  .button:hover { background: var(--blue-hover); box-shadow: 0 8px 26px rgb(0 103 255 / .18); }
  .button:hover .arrow, .services-list a:hover .arrow, .project-list a:hover .arrow { transform: translateX(4px); }
  .service-strip a:hover, .project-list a:hover { color: var(--blue); }
  .services-list a:hover { color: var(--blue); background: #f1f7ff; }
  .text-link:hover { color: var(--blue-hover); }
}

@media (min-width: 1800px) {
  .hero { grid-template-rows: minmax(0, 1fr) 180px; }
  .service-strip { padding-top: 36px; }
  .services { grid-template-columns: 55% 1fr; }
}

@media (max-width: 1100px) and (min-width: 761px) {
  :root { --gutter: 34px; }
  .hero { min-height: 660px; grid-template-rows: minmax(0, 1fr) 130px; }
  .hero-copy { padding-bottom: 35px; }
  h1 { font-size: clamp(42px, 4.7vw, 53px); }
  .hero-eyebrow { margin-bottom: 24px; font-size: 9px; }
  .hero-stages { font-size: 6px; letter-spacing: .08em; }
  .hero-stages i { padding: 0 6px; }
  .hero-lead { font-size: 17px; }
  .button { min-width: 242px; min-height: 57px; padding: 17px 24px; font-size: 14px; }
  .brand { font-size: 19px; }
  .brand svg { width: 38px; height: 38px; }
  .service-strip { padding-top: 23px; }
  .service-strip .icon { width: 37px; height: 37px; }
  .service-strip span { font-size: 9px; }
  .services { grid-template-columns: 54% 1fr; gap: 33px; padding-top: 40px; padding-bottom: 40px; }
  .services-copy .eyebrow { margin-bottom: 18px; }
  .services-copy h2 { font-size: 30px; }
  .services-copy .lead { font-size: 15px; }
  .services-list a { gap: 15px; min-height: 65px; grid-template-columns: 34px 1fr 18px; }
  .services-list a .service-icon { width: 34px; height: 34px; }
  .services-list a span { font-size: 12px; }
  .projects-heading h2 { font-size: 35px; }
  .desktop-break { display: none; }
  .dispatch { grid-template-columns: 42% 58%; }
  .dispatch-copy h2 { font-size: 39px; }
  .dispatch-copy .lead { font-size: 17px; }
  .project-list a { padding-left: 22px; padding-right: 22px; font-size: 16px; }
  .contact-inner { grid-template-columns: 1fr 220px; gap: 30px; }
  .contact-stages { padding-left: 25px; }
  .contact-stages li { gap: 15px; font-size: 14px; }
  .contact h2 { font-size: 43px; }
  .whatsapp-button { min-width: 300px; }
}

@media (max-width: 760px) {
  :root { --gutter: 26px; }
  html { scroll-snap-type: y proximity; }
  .eyebrow { font-size: 10px; letter-spacing: .15em; }
  h2 { font-size: clamp(32px, 7.2vw, 47px); }
  .lead { font-size: 17px; }
  .desktop-break { display: none; }
  .button { min-height: 55px; min-width: 254px; font-size: 15px; padding: 17px 25px; }
  .hero { min-height: 660px; grid-template-rows: minmax(0, 1fr) 160px; }
  .hero-main { display: block; position: relative; }
  .hero-copy { height: 100%; padding: 21px var(--gutter) 18px; justify-content: flex-end; }
  .brand { position: absolute; top: 20px; left: var(--gutter); font-size: 19px; gap: 9px; z-index: 3; }
  .brand svg { width: 37px; height: 37px; }
  .hero-media { position: absolute; inset: 0; }
  .hero-media img { object-position: 65% 25%; }
  .hero-media::after { background: linear-gradient(180deg, rgb(253 253 254 / .96) 0%, rgb(253 253 254 / .70) 8%, rgb(253 253 254 / .02) 20%, rgb(253 253 254 / .02) 32%, rgb(253 253 254 / .78) 46%, var(--paper) 65%); }
  .hero-message { margin: 0; padding: 0; width: 100%; }
  .hero-eyebrow { margin-bottom: 17px; }
  .hero-eyebrow::before { left: -12px; height: 54px; top: 0; }
  .hero h1 { font-size: clamp(40px, 8.8vw, 59px); line-height: 1.025; letter-spacing: -.058em; }
  .hero h1 > span:nth-child(1), .hero h1 > span:nth-child(2) { display: inline; }
  .hero h1 > span:nth-child(1)::after { content: " "; }
  .hero-last-line { white-space: normal; font-size: 1em; max-width: 510px; }
  .hero-lead { margin: 15px 0 21px; max-width: 350px; font-size: 16px; line-height: 1.4; }
  .hero-stages { margin-top: 27px; font-size: 7px; letter-spacing: .05em; }
  .hero-stages i { padding: 0 6px; }
  .service-strip { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); padding: 10px 14px; gap: 8px 0; }
  .service-strip a { gap: 4px; padding: 0 6px; justify-content: center; }
  .service-strip a:nth-child(4) { border-left: 0; }
  .service-strip .icon { width: 27px; height: 27px; stroke-width: 1.8; }
  .service-strip span { font-size: 9px; line-height: 1.35; }
  .services { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 23px; padding: 30px var(--gutter); }
  .services-photo { height: clamp(170px, 27svh, 265px); order: 2; }
  .services-photo img { object-position: 50% 20%; }
  .services-copy { padding: 0; }
  .services-copy .eyebrow { margin-bottom: 14px; }
  .services-copy h2 { font-size: clamp(30px, 6.9vw, 42px); }
  .services-copy .lead { font-size: 15px; line-height: 1.4; margin: 13px 0 18px; max-width: 490px; }
  .services-list a { min-height: 50px; grid-template-columns: 30px 1fr 19px; gap: 15px; }
  .services-list a .service-icon { width: 28px; height: 28px; stroke-width: 1.8; }
  .services-list a span { font-size: 13px; }
  .services-list a .arrow { width: 18px; height: 18px; }
  .dispatch { grid-template-columns: 1fr; gap: 24px; align-content: center; padding: 45px var(--gutter); }
  .dispatch-copy .eyebrow { margin-bottom: 22px; }
  .dispatch-copy h2 { font-size: clamp(37px, 8.7vw, 58px); }
  .dispatch-copy .lead { margin-top: 21px; font-size: 17px; max-width: 410px; }
  .dispatch-art { width: calc(100% + 35px); margin-left: -17px; }
  .projects { padding: 52px var(--gutter); }
  .projects-heading { display: block; }
  .projects-heading .eyebrow { margin-bottom: 22px; }
  .projects-heading h2 { font-size: clamp(39px, 9vw, 57px); max-width: 430px; }
  .text-link { margin-top: 18px; font-size: 14px; }
  .project-list { display: block; margin-top: 35px; }
  .project-list a { min-height: 76px; border-left: 0; border-top: 1px solid var(--line); padding: 18px 0; font-size: 21px; }
  .project-list a:last-child { border-bottom: 1px solid var(--line); }
  .next-section { bottom: 22px; }
  .contact { padding: 60px var(--gutter); }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-background { object-position: 65% center; }
  .contact::after { background: linear-gradient(180deg, rgb(5 34 65 / .78), rgb(5 34 65 / .72)); }
  .contact-copy .eyebrow { margin-bottom: 25px; font-size: 9px; }
  .contact h2 { font-size: clamp(45px, 10.5vw, 66px); line-height: 1.06; max-width: 450px; }
  .contact .lead { font-size: 18px; line-height: 1.55; margin: 23px 0 29px; }
  .whatsapp-button { min-width: min(100%, 320px); gap: 11px; }
  .contact-stages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 23px 10px; border-left: 0; border-top: 1px solid rgb(211 227 246 / .35); padding: 28px 0 0; }
  .contact-stages li { gap: 10px; font-size: 13px; }
  .contact-stages .icon { width: 31px; height: 31px; }
  .back-to-top { bottom: 18px; }
}

@media (max-width: 390px) {
  :root { --gutter: 22px; }
  .hero h1 { font-size: 39px; }
  .hero-stages { font-size: 6.3px; }
  .hero-stages i { padding: 0 4px; }
  .service-strip span { font-size: 8.5px; }
  .services-copy h2 { font-size: 29px; }
  .services-copy .lead { font-size: 14px; }
  .services-list a span { font-size: 12px; }
  .contact-stages li { font-size: 12px; gap: 8px; }
}

@media (max-width: 760px) and (max-height: 740px) {
  .hero { min-height: 560px; grid-template-rows: minmax(0, 1fr) 140px; }
  .hero-copy { padding-bottom: 16px; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(30px, 9vw, 36px); }
  .hero-lead { font-size: 15px; margin: 12px 0 16px; }
  .hero .button { min-height: 50px; padding-top: 14px; padding-bottom: 14px; }
  .hero-stages { margin-top: 18px; }
  .service-strip span { font-size: 8px; line-height: 1.3; }
  .hero-media::after { background: linear-gradient(180deg, rgb(253 253 254 / .94), rgb(253 253 254 / .12) 20%, rgb(253 253 254 / .1) 26%, rgb(253 253 254 / .87) 42%, var(--paper) 60%); }
  .services { padding-top: 27px; padding-bottom: 27px; gap: 18px; }
  .services-photo { height: 120px; }
  .services-list a { min-height: 44px; }
  .dispatch, .projects, .contact { min-height: 100svh; }
  .dispatch { padding-top: 35px; padding-bottom: 35px; gap: 20px; }
  .dispatch-copy h2 { font-size: clamp(32px, 8.8vw, 40px); }
  .dispatch-copy .lead { font-size: 16px; }
  .dispatch-art img { max-height: 235px; object-fit: contain; }
  .projects { padding-top: 40px; padding-bottom: 40px; }
  .contact { padding-top: 40px; padding-bottom: 40px; }
  .contact-inner { gap: 32px; }
}

@media (max-width: 350px) {
  .service-strip { padding: 8px 10px; gap: 6px 0; }
  .service-strip a { padding: 0 3px; gap: 3px; }
  .service-strip .icon { width: 25px; height: 25px; }
}

@media (min-width: 761px) and (max-height: 700px) {
  .hero { min-height: 640px; grid-template-rows: minmax(0, 1fr) 118px; }
  .hero-copy { padding-top: 17px; padding-bottom: 22px; }
  .hero-message { padding: 18px 0; }
  .hero-eyebrow { margin-bottom: 17px; }
  .hero h1 { font-size: clamp(40px, 3.7vw, 65px); }
  .hero-lead { margin: 13px 0 19px; }
  .service-strip { padding-top: 17px; padding-bottom: 16px; }
  .service-strip a { gap: 8px; }
  .service-strip .icon { width: 36px; height: 36px; }
  .services { min-height: max(640px, 100svh); padding-top: 28px; padding-bottom: 28px; }
  .services-list a { min-height: 58px; }
  .dispatch-art img { max-height: calc(100svh - 140px); object-fit: contain; }
  .dispatch, .projects, .contact { min-height: max(640px, 100svh); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
