:root {
  --blue: #1257d6;
  --blue-dark: #0b43ac;
  --ink: #15171b;
  --muted: #626873;
  --line: #dfe3e9;
  --paper: #ffffff;
  --surface: #f3f5f8;
  --beige: #f2eadc;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow: 0 18px 50px rgba(21, 23, 27, 0.10);
  --section-space: clamp(64px, 8vw, 112px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Montserrat, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

a,
button,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(18, 87, 214, 0.32);
  outline-offset: 3px;
}

.main_wrapper {
  width: 100%;
  overflow: hidden;
  background: var(--paper);
}

.section_shell {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section_heading {
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 54px);
}

.section_heading .title,
.footer_title {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.section_heading .title span {
  color: var(--blue);
}

.section_heading > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

/* Hero */
.hero_section {
  position: relative;
  background: var(--surface);
}

.hero_section::after {
  position: absolute;
  right: -140px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 72px solid rgba(18, 87, 214, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.top_promo_bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 42px;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.top_promo_bar strong {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
}

.hero_content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  padding-block: clamp(42px, 7vw, 82px);
}

.hero_copy {
  align-self: center;
}

.hero_title {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(38px, 8vw, 78px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.brand_accent {
  display: block;
  color: var(--blue);
}

.hero_subtitle {
  max-width: 630px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(16px, 2.3vw, 21px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.hero_description {
  max-width: 610px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(15px, 1.8vw, 18px);
}

.hero_price_box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 15px 58px 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(21, 23, 27, 0.07);
}

.price_tag .label {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price_tag .val {
  display: block;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.new_price .val {
  color: var(--blue);
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: -0.045em;
}

.new_price small {
  font-size: 0.45em;
  letter-spacing: 0;
}

.old_price .val {
  color: #8a909b;
  font-size: 16px;
  text-decoration: line-through;
}

.discount_badge {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 40px;
  padding: 6px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.hero_price_box > .discount_badge {
  position: absolute;
  top: -12px;
  right: -10px;
  transform: rotate(3deg);
}

.promo_date_banner {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 8px;
  background: #e11d1d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero_btn,
.order_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(18, 87, 214, 0.26);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.045em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hero_btn {
  padding: 17px 28px;
}

.hero_btn:hover,
.order_button:hover {
  background: var(--blue-dark);
  box-shadow: 0 16px 34px rgba(18, 87, 214, 0.32);
  transform: translateY(-2px);
}

.hero_btn:active,
.order_button:active {
  transform: translateY(1px);
}

.hero_quick_facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero_quick_facts li {
  position: relative;
  padding-left: 15px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero_quick_facts li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--blue);
  content: "";
}

.hero_image_full {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #d8dce2;
  box-shadow: var(--shadow);
}

.hero_image_full::before {
  position: absolute;
  inset: 14px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: calc(var(--radius-lg) - 10px);
  content: "";
  pointer-events: none;
}

.hero_image_full img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  object-position: center top;
}

.image_label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 8px;
  background: rgba(21, 23, 27, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.image_label span {
  color: #7eaaff;
}

/* Description and product details */
.description_section,
.size_section,
.cat,
.order_process,
.delivery-block-v3 {
  padding-block: var(--section-space);
}

.description_intro {
  display: grid;
  gap: 28px;
  margin-bottom: clamp(42px, 6vw, 70px);
}

.description_copy {
  color: #3e434c;
}

.description_copy p {
  margin: 0 0 16px;
}

.description_copy p:last-child {
  margin-bottom: 0;
  color: var(--ink);
}

.specs_list {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.specs_list > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.75fr) minmax(0, 1.5fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.specs_list > div:last-child {
  border-bottom: 0;
}

.specs_list dt {
  color: #9ebeff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.specs_list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.features_container {
  display: grid;
  gap: 14px;
}

.feature_card {
  position: relative;
  min-height: 180px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature_card:hover {
  border-color: rgba(18, 87, 214, 0.5);
  box-shadow: 0 14px 34px rgba(21, 23, 27, 0.08);
  transform: translateY(-3px);
}

.feature_number {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.feature_card::after {
  position: absolute;
  top: 31px;
  left: 55px;
  width: 42px;
  height: 2px;
  background: var(--blue);
  content: "";
}

.feature_content h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.feature_content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Size table */
.size_section {
  background: var(--surface);
}

.size_table_wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(21, 23, 27, 0.06);
  -webkit-overflow-scrolling: touch;
}

.size_table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: var(--ink);
}

.size_table th,
.size_table td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.size_table thead th {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.size_table tbody th {
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.size_table tbody td {
  font-size: 15px;
  font-weight: 650;
}

.size_table tbody tr:last-child th,
.size_table tbody tr:last-child td {
  border-bottom: 0;
}

.size_table tbody tr:nth-child(even) {
  background: #f7f8fa;
}

.size_note {
  margin: 16px 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.section_cta {
  width: 100%;
  max-width: 320px;
}

/* Product galleries */
.cat {
  background: var(--paper);
}

.product_list {
  display: grid;
  gap: 24px;
}

.product_card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(21, 23, 27, 0.08);
}

.gallery_wrapper {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
}

.swipe_gallery {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.swipe_gallery::-webkit-scrollbar {
  display: none;
}

.swipe_gallery img {
  width: 100%;
  min-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  scroll-snap-align: start;
}

.slider_btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(21, 23, 27, 0.78);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 180ms ease, transform 180ms ease;
}

.slider_btn:hover {
  background: var(--blue);
  transform: translateY(-50%) scale(1.05);
}

.slider_prev { left: 12px; }
.slider_next { right: 12px; }

.gallery_count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(21, 23, 27, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product_card_info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
}

.color_name {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

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

.card_price {
  text-align: right;
  white-space: nowrap;
}

.card_price span {
  display: block;
  color: #9399a4;
  font-size: 12px;
  text-decoration: line-through;
}

.card_price strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.order_button {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 14px 18px;
}

/* Ordering and delivery */
.order_process {
  background: var(--ink);
}

.order_process .eyebrow,
.section_heading.inverse .eyebrow {
  color: #82abff;
}

.order_process .title,
.section_heading.inverse .footer_title {
  color: #fff;
}

.order_process .title span {
  color: #82abff;
}

.order_steps1 {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.13);
}

.step_item {
  min-height: 190px;
  padding: 25px;
  background: #1e2127;
  color: #fff;
}

.step_item > span {
  display: block;
  margin-bottom: 32px;
  color: #82abff;
  font-size: 13px;
  font-weight: 900;
}

.step_item h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.step_item p {
  margin: 0;
  color: #b8bec9;
  font-size: 14px;
}

.delivery-block-v3 {
  padding-top: 0;
  background: var(--ink);
}

.delivery-cont {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.delivery-cont li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: #fff;
}

.delivery-cont li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.delivery-cont h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.delivery-cont p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Final order form */
.footer_order_section {
  padding-top: var(--section-space);
  background: var(--surface);
}

.footer_content {
  display: grid;
  gap: 28px;
}

.footer_product,
.form_panel {
  min-width: 0;
}

.section_heading.inverse {
  margin-bottom: 26px;
}

.section_heading.inverse .footer_title {
  color: var(--ink);
  font-size: clamp(30px, 5vw, 56px);
}

.section_heading.inverse > p:last-child {
  color: var(--muted);
}

.footer_image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.footer_image img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center 25%;
}

.footer_image .discount_badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.form_panel {
  align-self: end;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-md);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.form_panel .hero_price_box {
  width: 100%;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-right: 18px;
  box-shadow: none;
}

.form_panel .promo_date_banner {
  margin: 0 0 22px;
  color: #fff;
}

.premium_form {
  width: 100%;
}

.input_group,
.select_group {
  margin-bottom: 14px;
}

.premium_form label {
  display: block;
  margin: 0 0 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
}

.premium_input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid #4b505a;
  border-radius: 10px;
  background: #25282e;
  color: #fff;
  font-size: 16px;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.premium_input::placeholder {
  color: #aeb4be;
}

.premium_input:hover {
  border-color: #6a7180;
}

.premium_input:focus {
  border-color: #82abff;
  background: #2b2f36;
  box-shadow: 0 0 0 4px rgba(18, 87, 214, 0.18);
  outline: none;
}

select.premium_input {
  color-scheme: dark;
  cursor: pointer;
}

.premium_form .hero_btn {
  width: 100%;
  margin-top: 4px;
}

.form_note {
  margin: 13px 0 0;
  color: #aeb4be;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.site_footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
  padding-block: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site_footer p {
  margin: 0;
}

.site_footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site_footer a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.site_footer a:hover {
  color: var(--blue);
}

@media (min-width: 620px) {
  .section_shell {
    width: min(100% - 64px, 1180px);
  }

  .features_container,
  .product_list,
  .order_steps1,
  .delivery-cont {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site_footer {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .site_footer nav {
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .hero_content {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    gap: clamp(40px, 6vw, 78px);
  }

  .hero_image_full img {
    min-height: 650px;
  }

  .description_intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.8fr);
    gap: 56px;
  }

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

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

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

  .delivery-cont {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer_content {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    gap: clamp(42px, 6vw, 82px);
  }
}

@media (max-width: 619px) {
  :root {
    /* Відстань між секціями зменшено вдвічі (було 66px) */
    --section-space: 33px;
  }

  /* Мобільний порядок героя: фото одразу після вступного тексту */
  .hero_copy {
    display: contents;
  }

  .hero_intro {
    order: 1;
  }

  .hero_intro > :last-child {
    margin-bottom: 0;
  }

  .hero_image_full {
    order: 2;
  }

  .hero_buy {
    order: 3;
  }

  /* Блок із фото у формі — точно по розміру самого фото */
  .footer_image {
    align-self: start;
    box-shadow: none;
  }

  .footer_image img {
    aspect-ratio: auto;
    height: auto;
  }

  /* Юридичні посилання у футері — по центру */
  .site_footer {
    align-items: center;
    text-align: center;
  }

  .site_footer nav {
    justify-content: center;
  }

  .section_shell {
    width: min(100% - 28px, 480px);
  }

  .hero_content {
    gap: 28px;
  }

  .hero_title {
    font-size: clamp(37px, 11.5vw, 51px);
  }

  .hero_price_box {
    width: 100%;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 47px 14px 14px;
  }

  .new_price .val {
    font-size: clamp(29px, 9vw, 38px);
  }

  .old_price .val {
    font-size: 14px;
  }

  .hero_btn,
  .section_cta {
    width: 100%;
    max-width: none;
  }

  .hero_image_full {
    border-radius: var(--radius-md);
  }

  .hero_image_full img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .section_heading .title,
  .footer_title {
    font-size: clamp(30px, 9.5vw, 42px);
  }

  .specs_list {
    padding: 19px;
  }

  .feature_card {
    min-height: 0;
  }

  .size_table_wrap {
    border-radius: var(--radius-sm);
  }

  .product_card_info {
    padding: 17px;
  }

  .order_button {
    width: calc(100% - 34px);
    margin: 0 17px 17px;
  }

  .slider_btn {
    width: 40px;
    height: 40px;
  }

  .form_panel .hero_price_box {
    gap: 10px;
    padding: 12px;
  }

  .form_panel .new_price .val {
    font-size: 30px;
  }
}

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