@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-cyrillic-800-normal.e9796e8de1.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-ext-800-normal.59f6ebeb71.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin-800-normal.ba826fb84c.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand colours are approximate until the customer confirms exact codes (spec §11 п.13). */
:root {
  --color-text: #1f4a9e;
  --color-muted: #4b5b7c;
  --color-accent: #ffdd55;
  --color-accent-hover: #f7cf2e;
  --color-on-accent: #16213e;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f7fc;
  --color-border: #dbe3f0;
  --color-border-strong: #c3cfe4;
  --font-heading: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 12px;
  --container: 1080px;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

* { box-sizing: border-box; }

body { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: block;
  flex: none;
  line-height: 0;
}

.brand svg {
  width: 112px;
  height: auto;
}

.lang { margin-left: auto; }

.lang ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang a {
  display: block;
  padding: 8px 6px;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.lang a:hover { background: var(--color-bg-soft); }

.lang a[aria-current='page'] {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.burger {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.burger span { position: relative; }

.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
}

.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

body.menu-open { overflow: hidden; }

.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.menu-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 33, 62, 0.4);
}

.menu {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(300px, 85vw);
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--color-bg);
  box-shadow: -8px 0 24px rgba(22, 33, 62, 0.15);
  animation: menu-in 200ms ease-out;
}

.menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.menu__close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

@keyframes menu-in {
  from { transform: translateX(100%); }
  to { transform: none; }
}

@media (max-width: 360px) {
  .container.header__inner { gap: 6px; padding-left: 14px; padding-right: 14px; }
  .brand svg { width: 88px; }
  .lang a { padding: 8px 4px; }
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: 800;
}

.hero { padding: 48px 0 56px; }

.hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1.15;
}

.hero__price {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 18px;
  font-weight: 700;
  position: relative;
}

/* spec §7b «Анимации»: sparkles are invisible unless animated, so reduced motion hides them. */
.hero__price::before,
.hero__price::after,
.form__hvala::before,
.form__hvala::after {
  content: '✦';
  position: absolute;
  color: var(--color-accent);
  text-shadow: 0 0 1px var(--color-on-accent);
  opacity: 0;
  pointer-events: none;
  animation: sparkle 4s ease-in-out infinite;
}

.hero__price::before { top: -10px; right: -8px; font-size: 16px; }

.hero__price::after { bottom: -6px; left: -10px; font-size: 11px; animation-delay: 1.3s; }

@keyframes sparkle {
  0%, 70%, 100% { opacity: 0; transform: scale(0.4) rotate(0deg); }
  80% { opacity: 1; transform: scale(1.1) rotate(20deg); }
  90% { opacity: 0.6; transform: scale(0.8) rotate(35deg); }
}

.hero__subtitle {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--color-muted);
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}

.button--primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.button--primary:hover { background: var(--color-accent-hover); }

.button--secondary {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: inset 0 0 0 2px var(--color-text);
}

.button--secondary:hover { background: var(--color-bg-soft); }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section { padding: 56px 0; }

.section:nth-of-type(odd) { background: var(--color-bg-soft); }

.section h2 {
  margin: 0 0 24px;
  font-size: clamp(24px, 4vw, 32px);
}

.section__note {
  margin: 24px 0 0;
  color: var(--color-muted);
}

#contacts a { color: inherit; }

.services {
  display: grid;
  gap: 16px;
}

.service {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.service__name {
  margin: 0 0 4px;
  font-size: 20px;
}

.service__price {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
}

.service__short {
  margin: 0;
  color: var(--color-muted);
}

.service__details { margin-top: 12px; }

.service__details summary {
  cursor: pointer;
  font-weight: 600;
}

.service__details dl { margin: 12px 0 0; }

.service__details dt {
  margin-top: 12px;
  font-weight: 600;
}

.service__details dd {
  margin: 4px 0 0;
  color: var(--color-muted);
}

.service__details p {
  margin: 12px 0 0;
  color: var(--color-muted);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 16px 16px 16px 64px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 12px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 36px;
  text-align: center;
}

.form {
  display: grid;
  gap: 20px;
  max-width: 720px;
}

.form__grid {
  display: grid;
  gap: 20px;
}

.form__field {
  display: grid;
  gap: 6px;
}

.form__field > label { font-weight: 600; }

.form__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-bg);
  font: inherit;
  color: inherit;
}

.form__input[aria-invalid='true'] { border-color: #b3261e; }

.form__summary {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-weight: 600;
}

.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.form__check input {
  margin-top: 4px;
  accent-color: var(--color-text);
}

.form__group {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form__group legend {
  margin-bottom: 6px;
  padding: 0;
  font-weight: 600;
}

.form__choices {
  display: grid;
  gap: 8px;
}

.form__error {
  margin: 0;
  color: #b3261e;
  font-size: 14px;
}

.form__note {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
}

.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  display: grid;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  border-left-width: 6px;
}

.form__status p { margin: 0; }

.form__status[data-kind='ok'] { border-left-color: #1e7a46; }

.form__status[data-kind='error'] { border-left-color: #b3261e; }

.form__status .form__hvala {
  position: relative;
  justify-self: start;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  animation: pop-in 0.5s ease-out both;
}

.form__hvala::before { top: -12px; right: -10px; font-size: 20px; animation-duration: 2.4s; }

.form__hvala::after { bottom: -8px; left: -12px; font-size: 14px; animation-duration: 2.4s; animation-delay: 0.8s; }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

[hidden] { display: none !important; }

.calc {
  display: grid;
  gap: 24px;
  max-width: 720px;
}

.calc__group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.calc__group legend,
.calc__label {
  margin-bottom: 8px;
  padding: 0;
  font-weight: 600;
}

.calc__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
}

.calc__option:has(input:checked) {
  border-color: var(--color-text);
  box-shadow: inset 4px 0 0 var(--color-accent), 0 0 0 1px var(--color-text);
}

.calc__option input { accent-color: var(--color-text); }

.calc__name { flex: 1; }

.calc__price {
  color: var(--color-muted);
  white-space: nowrap;
}

.calc__input {
  width: 100%;
  max-width: 220px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
}

.calc__note {
  margin: 0 0 8px;
  color: var(--color-muted);
}

.calc__result {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
}

.calc__result:empty { display: none; }

.calc__result p { margin: 0; }

.calc__includes {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--color-bg-soft);
}

.calc__includes-title {
  margin: 0 0 8px;
  font-weight: 600;
}

.calc__includes ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.calc__includes li {
  position: relative;
  padding-left: 28px;
  animation: tick-in 0.35s ease-out both;
  animation-delay: calc(var(--i) * 80ms);
}

.calc__includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 13px;
  font-weight: 700;
}

@keyframes tick-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__price::before,
  .hero__price::after,
  .form__status .form__hvala,
  .form__hvala::before,
  .form__hvala::after,
  .calc__includes li,
  .menu { animation: none; }
  .mobile-bar { transition: none; }
}

.calc__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0;
}

.calc__row--total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-size: 20px;
  font-weight: 700;
}

.calc__pending {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--color-muted);
}

.calc__hint {
  margin-top: 12px !important;
  font-size: 14px;
  color: var(--color-muted);
}

.calc__warning { color: #b3261e; }

.works__title {
  margin: 32px 0 12px;
  font-size: 20px;
}

.works__title:first-of-type { margin-top: 0; }

.works__note {
  margin: 0 0 16px;
  color: var(--color-muted);
}

.carousel { position: relative; }

.carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 2px;
  padding-bottom: 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.carousel__item {
  flex: 0 0 min(86%, 460px);
  margin: 0;
  scroll-snap-align: start;
}

.carousel__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: var(--radius);
  overflow: hidden;
}

.carousel__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--color-bg-soft);
}

.carousel__single {
  border-radius: var(--radius);
  overflow: hidden;
}

.carousel__single .carousel__photo { aspect-ratio: 8 / 5; }

.carousel__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__photo--empty {
  background: linear-gradient(160deg, #e8eefa 0%, #d3def3 100%);
}

.carousel__photo--empty + .carousel__photo--empty {
  background: linear-gradient(160deg, #fff6cf 0%, #ffe98f 100%);
}

.carousel__tag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
}

.carousel__item figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: var(--color-muted);
}

.carousel__arrow {
  position: absolute;
  top: calc(50% - 32px);
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(22, 33, 62, 0.12);
}

.carousel__arrow:disabled { opacity: 0.35; cursor: default; }

.carousel__arrow--prev { left: -12px; }

.carousel__arrow--next { right: -12px; }

.clients { margin-bottom: 20px; }

.clients__title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
}

.clients .carousel__track { padding: 4px 2px 8px; }

.clients .carousel__item {
  flex: 0 0 128px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.clients__logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 36px;
  object-fit: contain;
}

a.clients__logo:hover,
a.clients__logo:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: 0 6px 16px rgba(31, 74, 158, 0.12);
}

.clients .clients__logo--empty {
  gap: 6px;
  background: var(--color-bg-soft);
  border-style: dashed;
  color: var(--color-muted);
  font-size: 13px;
}

.clients .carousel__arrow { top: calc(50% - 20px); width: 36px; height: 36px; font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  .clients .carousel__item { transition: none; }
  a.clients__logo:hover,
  a.clients__logo:focus-visible { transform: none; }
}

@media (min-width: 860px) {
  .clients .carousel__item { flex-basis: 152px; height: 72px; padding: 12px 16px; }
  .clients__logo img { max-height: 44px; }
}

.footer {
  padding: 32px 0;
  font-size: 14px;
  color: var(--color-muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__social { display: flex; gap: 8px; }

.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-text);
}

.footer__icon:hover { background: var(--color-bg-soft); }

.footer__legal {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.6;
}

.footer__legal span { white-space: nowrap; }

.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--color-bg);
  box-shadow: 0 -1px 0 var(--color-bg-soft), 0 -4px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, visibility 0s;
}

/* visibility: iOS 26 Safari tints its toolbar from fixed bottom elements even when they are off-screen. */
.mobile-bar--hidden { transform: translateY(calc(100% + 20px)); opacity: 0; visibility: hidden; transition-delay: 0s, 0s, 0.45s; }

.mobile-bar .cta { flex-wrap: nowrap; gap: 8px; }

.mobile-bar .button {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  font-size: 15px;
  text-align: center;
}

.footer { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

.root { padding: 48px 20px; }

.root__langs {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
  font-size: 18px;
}

@media (min-width: 860px) {
  .header__inner { gap: 16px; }
  .brand svg { width: 160px; }
  .lang a { padding: 8px 10px; font-size: 14px; }
  .services { grid-template-columns: repeat(2, 1fr); align-items: start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .form__choices { grid-template-columns: repeat(3, 1fr); }
  .carousel__item { flex-basis: calc(50% - 8px); }
  .mobile-bar { display: none; }
  .footer { padding-bottom: 32px; }
}
