:root {
  --page-bg: #ffffff;
  --text: #050505;
  --accent: #0a940f;
  --accent-soft: rgba(10, 148, 15, 0.9);
  --danger: rgba(216, 54, 68, 0.94);
  --surface: #ffffff;
  --muted: #6a6a6a;
  --comment-border: #e9ebee;
  --comment-fill: #eaebef;
  --fb-blue: #4267b2;
  --shadow: 0 24px 55px rgba(0, 0, 0, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page {
  overflow-x: clip;
}

.content-shell {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
}

.hero {
  padding: 18px 0 12px;
}

.hero__inner {
  width: min(100% - 20px, 1120px);
  margin: 0 auto;
}

.hero__title {
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__highlight {
  color: #ffffff;
  background: var(--accent);
  padding-inline: 0.12em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.video-section {
  padding-bottom: 6px;
}

.video-shell {
  position: relative;
}

.video-embed {
  position: relative;
  width: 100%;
  background: #000000;
  border: 1px solid #ececec;
  padding-top: 56.25%;
}

.landing-video-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.video-sound-hint {
  position: absolute;
  left: 14px;
  bottom: 78px;
  z-index: 2;
  max-width: min(250px, calc(100% - 28px));
  border-radius: 16px;
  padding: 10px 14px;
  background: rgba(5, 5, 5, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  pointer-events: none;
  animation: video-sound-float 1.8s ease-in-out infinite;
}

.video-sound-hint::before {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -50px;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
  animation: video-sound-pulse 1.8s ease-out infinite;
}

.video-sound-hint::after {
  content: "";
  position: absolute;
  left: 42px;
  bottom: -19px;
  width: 2px;
  height: 26px;
  background: rgba(255, 255, 255, 0.88);
  transform: rotate(24deg);
  transform-origin: top center;
}

.video-sound-hint[hidden] {
  display: none;
}

@keyframes video-sound-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes video-sound-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.42);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.video-fallback {
  margin: 16px 0 0;
  color: var(--muted);
  text-align: center;
}

.button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible,
.door-card:focus-visible,
.order-form input:focus-visible {
  outline: 3px solid rgba(10, 148, 15, 0.28);
  outline-offset: 2px;
}

.button--ghost {
  background: #171717;
  color: #ffffff;
}

.button--danger {
  background: var(--danger);
  color: #ffffff;
}

.button--light {
  background: #ffffff;
  color: #b11e2d;
}

.button--submit {
  background: #71c341;
  color: #ffffff;
}

.offer {
  padding: 12px 0 0;
}

.anchor {
  position: relative;
  top: -16px;
}

.doors {
  padding: 22px 18px 26px;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #404a53 0%, #2f3740 100%);
}

.doors__title {
  margin: 0 0 26px;
  color: #ffffff;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.doors__title-mark {
  color: #ffe067;
}

.doors__grid {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.door-card {
  position: relative;
  width: 190px;
  height: 400px;
  border: 0;
  padding: 0;
  background: #0e0e0e;
  box-shadow: inset -1px -1px 0 1px #191919, inset 1px 1px 0 1px #191919;
  perspective: 500px;
}

.door-card__leaf,
.door-card__sale {
  position: absolute;
  inset: 0;
}

.door-card__leaf {
  transform-origin: left center;
  transition: transform 0.75s ease;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.door-card--1 .door-card__leaf {
  background-image: url("../img/door.png");
}

.door-card--2 .door-card__leaf {
  background-image: url("../img/door2.png");
}

.door-card--3 .door-card__leaf {
  background-image: url("../img/door3.png");
}

.door-card__sale {
  display: grid;
  place-items: center;
  inset: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 700;
  color: #d10000;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.55);
}

.door-card:hover .door-card__leaf {
  transform: rotateY(-25deg);
}

.door-card.is-open .door-card__leaf {
  transform: rotateY(-84deg);
}

.order-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  background: #020202 url("../img/bg.jpg") no-repeat 30% center / cover;
  color: #ffffff;
}

.order-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.55) 56%, rgba(0, 0, 0, 0.35) 100%);
}

.order-card__content {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.order-card__eyebrow {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.order-card__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.order-card__text {
  margin: 18px 0 20px;
  max-width: 28ch;
  font-size: 1.05rem;
  line-height: 1.45;
}

.timer {
  display: inline-block;
  min-width: 4ch;
  margin-left: 8px;
  color: #ffd462;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.price-box {
  display: flex;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.price-box__new {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #ffd462;
  text-transform: uppercase;
}

.price-box__old {
  margin: 0;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
}

.order-form {
  display: grid;
  gap: 14px;
}

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

.order-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
}

.order-form input.is-invalid {
  border-color: #db4050;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field__error {
  min-height: 1.15em;
  color: #ffb8bf;
  font-size: 0.9rem;
}

.form-success {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(113, 195, 65, 0.18);
  border: 1px solid rgba(113, 195, 65, 0.55);
  line-height: 1.45;
}

.comments-section {
  padding: 6px 0 32px;
}

.comments-card {
  border: 1px solid var(--comment-border);
  border-radius: 3px;
  padding: 0 15px 18px;
}

.comments-card__header {
  border-bottom: 1px solid var(--comment-border);
  padding: 15px 0;
}

.comments-card__header h2 {
  margin: 0;
  font-size: 0.95rem;
}

.comments-list {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.comment {
  display: none;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  opacity: 0;
}

.comment--initial-visible {
  display: grid;
  opacity: 1.0002;
}

.comment.is-visible {
  opacity: 1.0002;
}

.comment--reply {
  margin-left: 36px;
}

.comment__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.comment__content {
  min-width: 0;
}

.comment__name {
  margin: 0 0 6px;
  font-size: 0.97rem;
  color: #365899;
}

.comment__body {
  margin: 0;
  padding: 12px 18px;
  border-radius: 22px;
  background: var(--comment-fill);
  color: #000000;
  line-height: 1.35;
}

.comment__gallery {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.comment__gallery--single {
  max-width: 350px;
}

.comment__gallery--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 350px;
}

.comment__gallery img {
  width: 100%;
  border-radius: 14px;
}

.comment__meta {
  position: relative;
  margin: 8px 0 0;
  padding-right: 64px;
  color: var(--fb-blue);
  font-size: 0.82rem;
  line-height: 1.45;
}

.comment__meta span {
  position: absolute;
  top: -4px;
  right: 0;
  min-width: 49px;
  padding: 3px 6px 2px 43px;
  color: #5d6c84;
  font-size: 0.85rem;
  text-align: right;
  border: 1px solid var(--comment-border);
  border-radius: 20px;
  background: #ffffff url("../img/reaction-2020alphab.png") no-repeat 0 0;
}

.comments-card__footer {
  margin: 18px 0 0;
  color: var(--fb-blue);
  font-size: 0.95rem;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.64);
}

.modal__dialog {
  position: relative;
  width: min(100% - 24px, 400px);
  margin: min(20vh, 160px) auto 0;
  padding: 74px 20px 24px;
  text-align: center;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.modal__dialog::before {
  content: "";
  position: absolute;
  top: -55px;
  left: 50%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #71c341;
  transform: translateX(-50%);
}

.modal__dialog::after {
  content: "";
  position: absolute;
  top: -17px;
  left: 50%;
  width: 48px;
  height: 20px;
  border-bottom: 4px solid #ffffff;
  border-left: 4px solid #ffffff;
  transform: translateX(-50%) rotate(-45deg);
}

.modal__title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 2.5rem);
}

.modal__text {
  margin: 0 0 20px;
  font-size: 1.3rem;
  line-height: 1.35;
}

.modal__accent {
  color: #db4050;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.support-section {
  padding: 16px 0 0;
}

.support-card {
  padding: 18px 20px;
  border: 1px solid rgba(10, 148, 15, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(113, 195, 65, 0.08), rgba(10, 148, 15, 0.02)),
    #ffffff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
}

.support-card__eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.support-card__title {
  margin: 0;
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  line-height: 1.2;
}

.support-card__eyebrow,
.support-card__text,
.support-card__link--desktop-only {
  display: none;
}

.support-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.support-card__fact {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(10, 148, 15, 0.06);
}

.support-card__label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.support-card__value {
  font-weight: 700;
}

.support-card__facts {
  display: none;
}

.support-card__links,
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.support-card__links {
  margin-top: 10px;
  gap: 8px 14px;
  font-size: 0.92rem;
}

.support-card__links a,
.site-footer__links a {
  color: #1b5a25;
  font-weight: 700;
}

.site-footer {
  padding: 14px 0 18px;
  background: #f6f8f3;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(5, 5, 5, 0.08);
}

.site-footer__brand {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.site-footer__compact {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer__compact a {
  color: #1b5a25;
  font-weight: 700;
}

.site-footer__compact-sep {
  margin: 0 6px;
}

.site-footer__meta,
.site-footer__links,
.site-footer__note {
  display: none;
}

@media (max-width: 920px) {
  .support-card__facts {
    grid-template-columns: 1fr;
  }

  .doors__grid {
    gap: 16px;
  }

  .door-card {
    width: 95px;
    height: 200px;
  }

  .door-card--1 .door-card__leaf {
    background-image: url("../img/media_door.png");
  }

  .door-card--2 .door-card__leaf {
    background-image: url("../img/media_door2.png");
  }

  .door-card--3 .door-card__leaf {
    background-image: url("../img/media_door3.png");
  }

  .door-card__sale {
    inset: 10px;
    font-size: 1.55rem;
  }
}

@media (max-width: 720px) {
  .button {
    width: 100%;
  }

  .support-card {
    padding: 16px 14px;
  }

  .support-card__title {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .support-card__links {
    gap: 8px 12px;
    font-size: 0.88rem;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 14px;
  }

  .site-footer__brand {
    font-size: 0.9rem;
  }

  .site-footer__compact {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .order-card {
    padding: 28px 18px;
    background-image: url("../img/bg-mob.jpg");
    background-position: center top;
  }

  .order-card::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.48) 100%);
  }

  .comment {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .comment--reply {
    margin-left: 16px;
  }

  .comment__meta {
    padding-right: 58px;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 10px;
  }

  .hero__inner {
    width: min(100% - 12px, 1120px);
  }

  .hero__title {
    font-size: clamp(1.95rem, 8vw, 3rem);
  }

  .video-sound-hint {
    left: 10px;
    right: 10px;
    bottom: 68px;
    max-width: none;
    padding: 9px 12px;
    font-size: 0.78rem;
  }

  .video-sound-hint::before {
    left: 18px;
    bottom: -42px;
    width: 34px;
    height: 34px;
  }

  .video-sound-hint::after {
    left: 33px;
    bottom: -17px;
    height: 24px;
  }

  .support-card {
    padding: 22px 18px;
  }

  .content-shell {
    width: min(100% - 12px, 900px);
  }

  .doors {
    padding: 18px 10px 20px;
  }

  .doors__grid {
    gap: 10px;
  }

  .comment__body {
    padding: 10px 14px;
  }
}
