:root {
  --navy: #13294b;
  --ink: #142033;
  --muted: #59687c;
  --paper: #f8f5ef;
  --surface: #fff;
  --line: #dfe5ed;
  --gold: #f3cc66;
  --telegram: #1577a8;
  --whatsapp: #147b42;
  --viber: #6654a3;
  --page-gutter: clamp(18px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
img { max-width: 100%; }
h1, h2, h3, p, address, summary { overflow-wrap: anywhere; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 3px solid #2677d7; outline-offset: 5px; }
.hero a:focus-visible, .site-header a:focus-visible, .consultation-strip a:focus-visible { outline-color: var(--gold); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 12px 18px; border-radius: 6px; background: #fff; color: var(--navy); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--page-gutter); color: #fff; background: linear-gradient(180deg, rgba(19,41,75,.96), rgba(19,41,75,0)); transition: background-color 160ms ease, box-shadow 160ms ease; }
.site-header.is-scrolled { background: var(--navy); box-shadow: 0 4px 20px #0a172a18; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 264px; height: 56px; }
.header-actions, .cta-row, .footer-contacts { display: flex; align-items: center; gap: 10px; }
.header-actions { gap: 10px; }
.header-nav-link { padding: 12px 10px; font-size: 14px; font-weight: 700; }
.header-nav-link:hover { color: var(--gold); }

.screen { min-height: 100svh; }
.hero { position: relative; display: grid; align-items: center; overflow: hidden; padding: 140px var(--page-gutter) 76px; color: #fff; background: var(--navy); }
.hero-media, .hero-media img, .hero-overlay { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(10,23,42,.96) 0%, rgba(13,31,57,.82) 39%, rgba(19,41,75,.14) 82%), linear-gradient(0deg, rgba(10,23,42,.35), rgba(10,23,42,.08)); }
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: #846123; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hero .eyebrow { color: var(--gold); }
.ukraine-mark { display: inline-block; flex: 0 0 24px; width: 24px; height: 16px; border-radius: 2px; background: linear-gradient(#1681df 0 50%, #f3cc66 50%); }
h1 { max-width: 800px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(48px, 6.1vw, 82px); font-weight: 700; line-height: 1.03; letter-spacing: -.035em; }
h1 span { color: var(--gold); white-space: nowrap; }
.hero-text { max-width: 600px; margin: 26px 0 0; color: #ecf1f8; font-size: clamp(21px, 2.2vw, 29px); font-weight: 400; line-height: 1.4; }
.hero-hours { margin: 17px 0 0; color: #d8e1ed; font-size: 15px; }
.cta-row { flex-wrap: wrap; margin-top: 30px; }
.link-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 17px; border: 1px solid transparent; border-radius: 8px; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2; transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.link-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #07122225; }
.link-button svg { width: 20px; height: 20px; flex: 0 0 20px; fill: currentColor; }
.link-button--ghost { background: #ffffff12; border-color: #ffffff45; }
.link-button--ghost:hover { background: #ffffff22; }
.link-button--telegram { background: var(--telegram); }
.link-button--whatsapp { background: var(--whatsapp); }
.link-button--viber { background: var(--viber); }
.hero-services-link { display: inline-flex; align-items: center; gap: 24px; margin-top: 30px; padding: 5px 0; color: #e7edf5; font-size: 14px; border-bottom: 1px solid #ffffff44; }
.hero-services-link:hover { color: var(--gold); }
.hero-services-link span { font-size: 20px; }

.services, .questions, .about-section { padding: 80px var(--page-gutter); }
.services { background: linear-gradient(180deg, #f8f5ef, #fff); }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading h2, .about-company h2 { margin: 0; color: var(--navy); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4vw, 52px); line-height: 1.12; letter-spacing: -.025em; }
.section-intro { max-width: 660px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.service-card { position: relative; min-height: 154px; padding: 24px 23px; border: 1px solid var(--line); border-top: 3px solid #d4bb7b; border-radius: 8px; background: #fff; box-shadow: 0 8px 22px #0f244008; }
.service-card h3 { margin: 0; color: var(--navy); font-size: 18px; line-height: 1.3; }
.service-card p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.consultation-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 28px 30px; border-radius: 10px; color: #fff; background: var(--navy); }
.consultation-strip h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 26px; line-height: 1.15; }
.consultation-strip p { max-width: 410px; margin: 9px 0 0; color: #d8e1ed; font-size: 15px; }
.consultation-strip .cta-row { flex-shrink: 0; gap: 8px; margin-top: 0; }
.consultation-strip .link-button { padding-inline: 13px; font-size: 13px; }

.questions { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.3fr); align-items: start; gap: clamp(30px,5vw,80px); background: #eef3f7; }
.questions .section-heading { position: sticky; top: 125px; }
.faq-list { border-top: 1px solid #c9d4e0; }
.faq-item { border-bottom: 1px solid #c9d4e0; }
.faq-item summary { position: relative; padding: 23px 38px 23px 0; color: var(--navy); font-size: 17px; font-weight: 700; line-height: 1.45; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 2px; top: 17px; font-size: 28px; font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { color: #23609e; }
.faq-item p { margin: 0; padding: 0 26px 23px 0; color: #46586f; font-size: 16px; line-height: 1.65; }

.about-section { background: #fff; }
.about-company { max-width: 940px; }
.about-company h2 { max-width: 750px; font-size: clamp(30px,3.2vw,44px); }
.about-company p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.work-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin: 38px 0 0; padding: 30px 0 0; list-style: none; border-top: 1px solid var(--line); }
.step-number { color: #9e762b; font-family: Georgia, 'Times New Roman', serif; font-size: 30px; line-height: 1; }
.work-steps h3 { margin: 14px 0 0; color: var(--navy); font-size: 18px; }
.work-steps p { margin: 9px 0 0; color: var(--muted); font-size: 15px; }

.footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding: 42px var(--page-gutter); background: #eaf0f5; border-top: 1px solid #d5dfe9; }
.footer strong { display: block; margin-bottom: 12px; color: var(--navy); font-size: 20px; }
.footer p, .footer address { margin: 4px 0 0; color: #4c5f75; font-size: 14px; font-style: normal; }
.footer .footer-hours { margin-top: 16px; font-weight: 700; }
.footer-contact-block { max-width: 560px; }
.footer .footer-contact-title { margin: 0 0 14px; color: var(--navy); font-size: 16px; font-weight: 700; }
.footer-contacts { flex-wrap: wrap; gap: 8px; }
.footer-contacts .link-button { padding: 12px; font-size: 13px; }
.footer .contact-numbers { margin-top: 16px; font-size: 13px; line-height: 1.8; }
.mobile-messengers { display: none; }

@media (min-width: 1700px) {
  :root { --page-gutter: max(80px, calc((100vw - 1540px)/2)); }
}
@media (max-width: 1180px) {
  .header-nav-link { display: none; }
  .consultation-strip { align-items: flex-start; flex-direction: column; }
  .consultation-strip .link-button { padding-inline: 17px; font-size: 14px; }
}
@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .questions { grid-template-columns: 1fr; gap: 4px; }
  .questions .section-heading { position: static; }
  .footer { flex-direction: column; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 88px; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .site-header { padding: 12px 18px; }
  .brand img { width: 236px; height: auto; }
  .header-actions { display: none; }
  .screen { min-height: auto; }
  .hero { padding: 108px 20px 38px; }
  .hero-media img { object-position: 62% center; }
  .hero-overlay { background: linear-gradient(90deg, #0a172aeb, #0a172a99), linear-gradient(0deg, #0a172ab3, #0a172a26); }
  .hero .eyebrow { gap: 9px; margin-bottom: 18px; font-size: 10px; letter-spacing: .03em; }
  .ukraine-mark { flex-basis: 21px; width: 21px; height: 14px; }
  h1 { max-width: 560px; font-size: clamp(34px, 10.5vw, 54px); line-height: 1.06; letter-spacing: -.03em; }
  .hero-text { margin-top: 20px; font-size: 21px; }
  .hero-hours { margin-top: 16px; font-size: 13px; }
  .hero .cta-row { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 23px; }
  .link-button { min-height: 48px; font-size: 14px; }
  .hero-services-link { margin-top: 22px; font-size: 13px; }
  .services, .questions, .about-section { padding: 40px 18px; }
  .section-heading { margin-bottom: 24px; }
  .eyebrow { margin-bottom: 13px; font-size: 11px; }
  .section-heading h2 { font-size: 36px; }
  .section-intro { margin-top: 14px; font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { min-height: 0; padding: 20px; }
  .service-card h3 { font-size: 18px; }
  .service-card p { margin-top: 8px; font-size: 14px; }
  .consultation-strip { gap: 20px; margin-top: 24px; padding: 24px 20px; }
  .consultation-strip h3 { font-size: 27px; }
  .consultation-strip .cta-row { display: grid; grid-template-columns: 1fr; width: 100%; }
  .faq-item summary { padding-block: 20px; font-size: 16px; }
  .faq-item summary::after { top: 15px; }
  .faq-item p { padding-right: 6px; font-size: 15px; }
  .about-company h2 { font-size: 32px; }
  .about-company p:not(.eyebrow) { margin-top: 17px; font-size: 16px; }
  .work-steps { grid-template-columns: 1fr; gap: 26px; margin-top: 28px; padding-top: 26px; }
  .work-steps h3 { margin-top: 10px; }
  .work-steps p { margin-top: 7px; }
  .footer { gap: 28px; padding: 32px 18px; }
  .footer strong { font-size: 19px; }
  .footer p, .footer address { font-size: 13px; }
  .footer-contacts { gap: 8px; }
  .footer-contacts .link-button { padding-inline: 12px; }
  .mobile-messengers { position: fixed; z-index: 30; inset: auto 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px #0a172a18; }
  .mobile-messengers .link-button { min-height: 49px; gap: 6px; padding: 12px 5px; font-size: 12px; border-radius: 7px; }
  .mobile-messengers .link-button svg { width: 18px; height: 18px; flex-basis: 18px; }
}
@media (max-width: 360px) {
  .hero { padding-inline: 18px; }
  .hero .eyebrow { font-size: 9px; }
  .hero-text { font-size: 19px; }
  .mobile-messengers { gap: 5px; padding-inline: 7px; }
  .mobile-messengers .link-button { gap: 4px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .link-button:hover { transform: none; }
}
