@font-face {
  font-family: "Averta Kyivstar";
  src: url("https://kyivstar.ua/_next/static/media/AvertaKyivstar-Regular.bd69544e.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Averta Kyivstar";
  src: url("https://kyivstar.ua/_next/static/media/AvertaKyivstar-SemiBold.2a56deec.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Averta Kyivstar";
  src: url("https://kyivstar.ua/_next/static/media/AvertaKyivstar-Bold.7288ad54.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eaf6ff;
  --surface: #ffffff;
  --sky: #f4fbff;
  --line: rgba(69, 138, 207, 0.26);
  --text: #15406f;
  --muted: #4f79a3;
  --blue: #79c1ff;
  --blue-strong: #52adff;
  --blue-deep: #2f8fe8;
  --yellow: #52adff;
  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 20px;
  --shadow-soft: 0 12px 26px rgba(41, 120, 197, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Averta Kyivstar", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, #d6edff 0, transparent 30%),
    radial-gradient(circle at 92% 2%, #d2ebff 0, transparent 32%),
    linear-gradient(180deg, #edf8ff 0%, #e4f4ff 40%, #f7fcff 100%);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1216px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: linear-gradient(180deg, #f8fdff 0%, #eef8ff 100%);
  border-top: 1px solid rgba(69, 138, 207, 0.18);
  border-bottom: 1px solid rgba(69, 138, 207, 0.18);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(234, 246, 255, 0.9);
  transform: translateZ(0);
  backface-visibility: hidden;
}

main {
  padding-top: 72px;
}

.header-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--blue-deep);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  color: var(--text);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  transition: background-color 0.15s, color 0.15s;
}

.main-nav a:hover {
  background: #e9f4ff;
  color: var(--blue-deep);
}

.hero {
  padding-top: 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.eyebrow {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--blue-deep);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4.1vw, 3.2rem);
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  margin-bottom: 22px;
}

h3 {
  font-size: clamp(1.08rem, 1.8vw, 1.24rem);
}

.lead {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  padding: 12px 20px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--blue-deep);
  box-shadow: 0 8px 20px rgba(47, 143, 232, 0.16);
}

.btn-primary:hover {
  background: #f2f9ff;
  border-color: #f2f9ff;
}

.btn-outline {
  background: var(--blue-strong);
  border-color: var(--blue-strong);
  color: #ffffff;
}

.btn-outline:hover {
  background: var(--blue-deep);
}

.quick-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-facts li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: var(--text);
  font-size: 0.93rem;
}

strong {
  color: var(--blue-deep);
}

.card-icon {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  border: 1px solid rgba(47, 143, 232, 0.25);
  background: #eef7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon img {
  width: 44px;
  height: 44px;
  display: block;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(47, 143, 232, 0.25);
  background: #eef7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.step-icon img {
  width: 36px;
  height: 36px;
  display: block;
}

.photo-slot {
  width: 100%;
  min-height: 112px;
  border: 2px dashed rgba(47, 143, 232, 0.55);
  border-radius: var(--radius-s);
  background:
    linear-gradient(145deg, rgba(121, 193, 255, 0.22) 0%, rgba(121, 193, 255, 0.08) 100%);
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.photo-slot-hero {
  min-height: 200px;
}

.photo-slot-wide {
  min-height: 180px;
}

.photo-slot-card {
  min-height: 116px;
}

.photo-slot-mini {
  min-height: 72px;
}

.photo-slot-form {
  min-height: 96px;
}

.hero-card,
.card,
.service-block,
.info-box,
.step,
.faq-list details,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.hero-card:hover,
.card:hover,
.service-block:hover,
.step:hover,
.faq-list details:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 143, 232, 0.5);
  box-shadow: 0 16px 30px rgba(47, 143, 232, 0.18);
}

.hero-card {
  padding: 24px;
}

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 240px;
  height: clamp(240px, 34vw, 340px);
  border-radius: var(--radius-m);
  border: 1px solid rgba(47, 143, 232, 0.25);
  overflow: hidden;
  background: #eaf6ff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-photo-caption {
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.hero-price-badge {
  margin: 14px 0 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e7f4ff;
  border: 1px solid rgba(47, 143, 232, 0.35);
  color: #1c4f82;
  font-weight: 600;
}

.hero-price-badge strong {
  margin-left: 6px;
}

.hero-card p,
.hero-card li,
.card p,
.service-block li,
.tariff-list li,
.step p {
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 18px;
}

.section-lead {
  margin: -6px 0 22px;
  color: var(--muted);
}

.service-stack {
  display: grid;
  gap: 18px;
}

.service-carousel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.service-carousel-home .tariff-card-detailed {
  grid-template-rows: minmax(88px, 88px) minmax(172px, 172px) minmax(84px, 84px) minmax(74px, 74px) minmax(56px, 56px) 24px;
}

.service-carousel-home .tariff-main {
  grid-template-rows: minmax(64px, auto) minmax(64px, auto) minmax(38px, auto);
  gap: 14px;
}

.service-carousel-home .tariff-feature {
  gap: 14px;
}

.service-carousel-home .tariff-speed {
  margin-top: 6px;
}

.service-carousel-home .tariff-price-block {
  padding-top: 14px;
}

.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.carousel-head h3 {
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(47, 143, 232, 0.3);
  background: #ffffff;
  color: var(--blue-deep);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.carousel-btn:hover {
  background: #edf7ff;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 290px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 143, 232, 0.4) transparent;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(47, 143, 232, 0.35);
  border-radius: 999px;
}

.tariff-card {
  border: 1px solid rgba(47, 143, 232, 0.2);
  border-radius: 20px;
  background: #f3f5f8;
  padding: 16px;
  scroll-snap-align: start;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.tariff-card-detailed {
  display: grid;
  grid-template-rows: minmax(88px, 88px) minmax(156px, 156px) minmax(84px, 84px) minmax(74px, 74px) minmax(56px, 56px) 24px;
  gap: 10px;
  align-content: start;
}

.tariff-card-collapsible {
  grid-template-rows: minmax(88px, 88px) minmax(156px, 156px) minmax(84px, 84px) minmax(70px, auto) minmax(74px, 74px) minmax(56px, 56px) 24px;
}

.tariff-name {
  margin: 0;
  color: #0d1622;
  font-weight: 700;
  font-size: clamp(1.24rem, 2.2vw, 1.55rem);
  line-height: 1.05;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tariff-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.tariff-card p {
  margin: 0;
  color: #25374b;
}

.tariff-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.tariff-main {
  display: grid;
  grid-template-rows: minmax(56px, auto) minmax(56px, auto) minmax(34px, auto);
  gap: 10px;
}

.tariff-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(47, 143, 232, 0.25);
  background: #ffffff;
  color: var(--blue-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  margin-top: 2px;
}

.tariff-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0d1622;
}

.tariff-feature-link {
  color: #1f78d1;
  text-decoration: none;
}

.tariff-speed {
  margin-top: 4px;
  font-size: 1rem;
}

.tariff-speed strong,
.tariff-price strong {
  color: #0d1622;
}

.tariff-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
}

.tariff-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #efdcec;
  color: #b64295;
  font-weight: 700;
  font-size: 0.82rem;
}

.tariff-help {
  width: 28px;
  height: 28px;
  border: 2px solid #c6ced8;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #76879a;
  font-weight: 700;
}

.tariff-price {
  font-size: 1.45rem;
  font-weight: 700;
  color: #0d1622;
}

.tariff-price-block {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 8px;
}

.tariff-price strong {
  font-size: 2.35rem;
  line-height: 0.95;
}

.tariff-next {
  font-size: 0.88rem;
  color: #4d6075;
}

.tariff-note {
  background: #d8edf8;
  color: #245073;
  border-radius: 14px;
  padding: 11px;
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tariff-extra {
  border: 1px solid rgba(47, 143, 232, 0.24);
  border-radius: 12px;
  background: #eef7ff;
  padding: 8px 10px;
}

.tariff-extra summary {
  cursor: pointer;
  font-weight: 700;
  color: #1f78d1;
}

.tariff-extra ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.tariff-extra li {
  color: #355876;
  font-size: 0.83rem;
}

.tariff-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4da7f8 0%, #0077ff 100%);
  color: #ffffff;
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.tariff-order:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 119, 255, 0.22);
}

.tariff-more {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  color: #1f78d1;
  font-size: 0.92rem;
  margin-top: 4px;
}

.service-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-block {
  padding: 20px;
}

.service-block ul,
.info-box ul,
.contact-list {
  margin: 0;
  padding-left: 18px;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-box {
  padding: 22px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-photo {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  border-radius: var(--radius-m);
  border: 1px solid rgba(47, 143, 232, 0.25);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.step {
  padding: 18px;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eaf6ff;
  color: var(--blue-deep);
  border: 1px solid rgba(47, 143, 232, 0.45);
  font-weight: 700;
  margin-bottom: 10px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  color: var(--muted);
}

.contact-list li {
  margin-bottom: 6px;
}

.contact-form {
  padding: 20px;
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  border: 1px solid #b7d5f0;
  border-radius: var(--radius-s);
  padding: 11px 12px;
  font: inherit;
  color: #123a7a;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px rgba(82, 173, 255, 0.24);
}

.site-footer {
  padding-top: 32px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: var(--blue-deep);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--blue-strong);
}

.legal-text {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  color: var(--muted);
}

.legal-main .section {
  padding-top: 86px;
}

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.legal-doc h1 {
  margin-bottom: 12px;
}

.legal-doc h2 {
  margin: 26px 0 12px;
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.legal-doc a {
  color: var(--blue-deep);
  text-decoration: underline;
}

.legal-meta {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ecf7ff;
  border: 1px solid rgba(47, 143, 232, 0.28);
}

.telegram-float {
  position: fixed;
  right: 18px;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px));
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #ffffff;
  display: grid;
  place-items: center;
  line-height: 0;
  box-shadow: 0 14px 24px rgba(18, 96, 177, 0.24);
  z-index: 70;
  animation: telegram-float-bob 2.8s ease-in-out infinite;
  transition: transform 0.16s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.telegram-float:hover {
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(18, 96, 177, 0.3);
}

.telegram-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@keyframes telegram-float-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.section,
.hero-content,
.hero-card,
.card,
.service-block,
.service-carousel,
.tariff-card,
.info-box,
.step,
.faq-list details,
.contact-form {
  animation: ks-fade-up 0.45s ease both;
}

.card:nth-child(2),
.service-block:nth-child(2),
.tariff-card:nth-child(2),
.step:nth-child(2),
.quick-facts li:nth-child(2) {
  animation-delay: 0.05s;
}

.card:nth-child(3),
.service-block:nth-child(3),
.tariff-card:nth-child(3),
.step:nth-child(3),
.quick-facts li:nth-child(3) {
  animation-delay: 0.1s;
}

.card:nth-child(4),
.tariff-card:nth-child(4),
.step:nth-child(4) {
  animation-delay: 0.15s;
}

@keyframes ks-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1024px) {
  .section {
    padding: 68px 0;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-columns {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    grid-auto-columns: minmax(230px, 260px);
  }

  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .section {
    padding: 56px 0;
  }

  .main-nav {
    display: none;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .cards-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    grid-auto-columns: minmax(92%, 92%);
  }

  .tariff-card {
    min-height: 0;
    padding: 14px;
  }

  .tariff-card-detailed {
    grid-template-rows: auto auto auto auto auto auto;
    gap: 10px;
  }

  .tariff-card-collapsible {
    grid-template-rows: auto auto auto auto auto auto auto;
    gap: 10px;
  }

  .service-carousel-home .tariff-card-detailed {
    grid-template-rows: auto auto auto auto auto auto;
  }

  .tariff-main,
  .service-carousel-home .tariff-main {
    grid-template-rows: auto auto auto;
    gap: 12px;
  }

  .tariff-price-block,
  .service-carousel-home .tariff-price-block {
    padding-top: 10px;
    gap: 6px;
  }

  .tariff-note {
    -webkit-line-clamp: 3;
  }

  .tariff-name {
    font-size: 1.2rem;
  }

  .tariff-price strong {
    font-size: 2.1rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .legal-doc {
    padding: 18px;
  }

  .telegram-float {
    width: 54px;
    height: 54px;
    right: 14px;
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px));
  }
}
