/* Front page — макет ROODSSY (photo_2026-07-09) */

.home-page {
  overflow: hidden;
  --home-blue: #0b5cab;
  --home-blue-dark: #0a4688;
  --home-sky: #eef5fc;
  --home-green: #39ad00;
  --home-green-dark: #2f9200;
}

body.home .site-main {
  padding: 0;
}

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

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-btn--shop {
  background: var(--home-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 92, 171, 0.25);
}

.home-btn--shop:hover {
  background: var(--home-blue-dark);
}

.home-btn--shop::after {
  content: "→";
  font-size: 1rem;
}

.home-btn--consult {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: none;
}

.home-btn--consult:hover {
  background: rgba(245, 130, 32, 0.08);
  color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.home-btn--consult::before {
  content: "☎";
  font-size: 0.95rem;
}

.home-btn--ghost {
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid var(--home-blue);
  background: #fff;
  color: var(--home-blue);
  border-radius: 8px;
  font-size: 0.82rem;
}

.home-btn--ghost:hover {
  background: var(--home-sky);
}

.home-btn--arrow::after {
  content: "→";
  font-size: 1.1rem;
}

.home-section-head {
  margin-bottom: 36px;
  text-align: center;
}

.home-section-head--decor {
  position: relative;
}

.home-section-head--decor::before,
.home-section-head--decor::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(120px, 18vw);
  height: 12px;
  background:
    radial-gradient(circle at 20% 50%, var(--home-blue) 2px, transparent 3px) 0 0 / 16px 12px repeat-x,
    linear-gradient(var(--home-blue), var(--home-blue)) center / 100% 2px no-repeat;
  opacity: 0.35;
  transform: translateY(-50%);
}

.home-section-head--decor::before {
  left: max(0px, calc(50% - 280px));
}

.home-section-head--decor::after {
  right: max(0px, calc(50% - 280px));
}

.home-section-head__title {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-section-head__subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* Hero */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 68vh, 680px);
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 38%, rgba(255, 255, 255, 0.45) 58%, rgba(255, 255, 255, 0.05) 72%, transparent 82%),
    var(--home-hero-bg, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0%25' stop-color='%23eef5fc'/%3E%3Cstop offset='100%25' stop-color='%23b9d6f2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='800' fill='url(%23g)'/%3E%3C/svg%3E"));
  background-size: cover, min(100%, calc(var(--container) * 2.2)) auto;
  /* Desktop: boat in clear zone — right side, above trust plaques */
  background-position: center, 78% 22%;
  background-repeat: no-repeat;
}

.home-hero__video-pill {
  position: absolute;
  top: 24px;
  right: max(16px, calc((100% - var(--container)) / 2));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100% - 32px));
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(11, 92, 171, 0.12);
  box-shadow: 0 8px 24px rgba(15, 45, 82, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--home-blue);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}

.home-hero__video-pill:hover {
  transform: translateY(-1px);
}

.home-hero__video-pill-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--home-blue);
  position: relative;
}

.home-hero__video-pill-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}

.home-hero__inner {
  position: relative;
  z-index: 1;
  min-height: clamp(500px, 64vh, 640px);
  display: flex;
  align-items: center;
  padding: 56px 0 128px;
}

.home-hero__content {
  max-width: 560px;
}

.home-hero__title {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.home-hero__subtitle {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 500;
}

.home-hero__usps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.home-hero__usps li {
  position: relative;
  padding-left: 26px;
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 600;
}

.home-hero__usps li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--home-blue);
  color: #fff;
  font-size: 0.68rem;
  line-height: 18px;
  text-align: center;
}

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

/* Trust bar in hero */
.home-hero .home-trust {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 2;
  background: transparent;
  border: 0;
  backdrop-filter: none;
  pointer-events: none;
}

.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 40px rgba(15, 45, 82, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: auto;
}

.home-trust__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-trust__icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(11, 92, 171, 0.18);
  background: var(--home-sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--home-blue);
}

.home-trust__icon .boats-icon {
  display: block;
}

.home-trust__title {
  display: block;
  color: var(--color-primary);
  font-size: 0.88rem;
  line-height: 1.3;
}

.home-trust__text {
  display: block;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Features — 6 in a row */
.home-features {
  padding: 28px 0 36px;
  background: #fff;
}

.home-features__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.home-features__item {
  padding: 18px 12px;
  border-radius: 10px;
  background: var(--home-sky);
  border: 1px solid rgba(11, 92, 171, 0.08);
  text-align: center;
}

.home-features__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 2px solid var(--home-blue);
  background: #fff;
  color: var(--home-blue);
}

.home-features__icon .boats-icon {
  display: block;
}

.home-features__title {
  margin: 0 0 6px;
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-features__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

/* Models */
.home-models {
  padding: 48px 0 56px;
  background: #fff;
}

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

.home-model-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 45, 82, 0.06);
}

.home-model-card__media {
  position: relative;
  display: block;
  padding: 18px 18px 0;
  background: linear-gradient(180deg, #f7fafd 0%, #fff 100%);
}

.home-model-card__image,
.home-model-card__media img {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: contain;
}

.home-model-card__badge {
  position: absolute;
  top: 14px;
  left: 0;
  z-index: 2;
  padding: 7px 12px 7px 10px;
  background: var(--home-blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.home-model-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}

.home-model-card__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-model-card__excerpt {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  min-height: 2.9em;
}

.home-model-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.home-model-card__spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  background: var(--home-sky);
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
}

.home-model-card__spec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(11, 92, 171, 0.15);
  color: var(--home-blue);
  flex: 0 0 22px;
}

.home-model-card__spec-icon .boats-icon {
  display: block;
}

.home-model-card__footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.home-model-card__price {
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 800;
}

.home-model-card__price del {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.home-model-card__price ins {
  text-decoration: none;
  color: var(--color-primary);
}

.home-model-card__btn {
  width: 100%;
  min-height: 44px;
  color: #fff;
}

.home-model-card__btn--blue {
  background: var(--home-blue);
}

.home-model-card__btn--blue:hover {
  background: var(--home-blue-dark);
}

.home-model-card__btn--green {
  background: var(--home-green);
}

.home-model-card__btn--green:hover {
  background: var(--home-green-dark);
}

.home-model-card__btn--orange {
  background: var(--color-accent);
}

.home-model-card__btn--orange:hover {
  background: var(--color-accent-hover);
}

.home-models__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Accessories */
.home-accessories {
  padding: 0 0 56px;
  background: var(--home-sky);
}

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

.home-accessory-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(11, 92, 171, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 45, 82, 0.06);
}

.home-accessory-card__media {
  display: block;
  padding: 18px 18px 0;
  background: linear-gradient(180deg, #fff 0%, #f7fafd 100%);
}

.home-accessory-card__image,
.home-accessory-card__media img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: contain;
}

.home-accessory-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}

.home-accessory-card__name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-accessory-card__excerpt {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  min-height: 2.9em;
}

.home-accessory-card__footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.home-accessory-card__price {
  color: var(--color-primary);
  font-size: 1.2rem;
  font-weight: 800;
}

.home-accessory-card__btn {
  width: 100%;
  min-height: 44px;
  background: var(--home-blue);
  color: #fff;
}

.home-accessory-card__btn:hover {
  background: var(--home-blue-dark);
}

.home-accessories__actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* Why us */
.home-why {
  padding: 48px 0 56px;
  background: var(--home-sky);
}

.home-why__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
}

.home-why__title {
  text-align: left;
  margin-bottom: 18px;
}

.home-why__video {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  padding: 24px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 26, 49, 0.05) 10%, rgba(8, 26, 49, 0.72) 100%),
    var(--home-why-poster, linear-gradient(135deg, #c5d9ea, #eef5fc));
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 40px rgba(15, 45, 82, 0.12);
  color: #fff;
}

.home-why__video--player {
  display: block;
  padding: 0;
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: #0b1c33;
}

.home-why__video--embed {
  display: block;
  padding: 0;
  min-height: 0;
  aspect-ratio: 16 / 10;
  background: #0b1c33;
}

.home-why__video-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-why__video-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: top;
  background: #0b1c33;
}

.home-why__video--player .home-why__video-badge,
.home-why__video--player .home-why__video-caption {
  pointer-events: none;
  z-index: 1;
}

.home-why__video--player .home-why__video-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 56px;
  max-width: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.home-why__video-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--home-blue);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.home-why__video-caption {
  display: block;
  max-width: 80%;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.home-why__video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.home-why__video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 16px;
  border-color: transparent transparent transparent var(--home-blue);
}

.home-why__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.home-why__list li {
  position: relative;
  padding-left: 28px;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.home-why__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--home-blue);
  color: #fff;
  font-size: 0.65rem;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 1100px) {
  .home-features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 900px) {
  .home-trust__grid,
  .home-why__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .home-trust__grid {
    padding: 8px 12px;
  }

  .home-why__grid {
    padding: 16px 18px;
  }

  .home-why__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-features {
    display: none;
  }

  .home-features__grid,
  .home-models__grid,
  .home-accessories__grid,
  .home-trust__grid {
    grid-template-columns: 1fr;
  }

  /* Mobile hero: content on white, boat as visual strip, trust in flow */
  .home-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background-color: #fff;
    background-image: none;
  }

  .home-hero__video-pill {
    display: none;
  }

  .home-hero__inner {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    display: block;
    min-height: 0;
    padding: 0;
  }

  .home-hero__content {
    max-width: none;
  }

  .home-hero__title {
    font-size: clamp(1.45rem, 7vw, 1.75rem);
    line-height: 1.12;
    margin-bottom: 10px;
  }

  .home-hero__subtitle {
    margin-bottom: 14px;
    font-size: 0.98rem;
  }

  .home-hero__usps {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 18px;
  }

  .home-hero__usps li {
    font-size: 0.9rem;
  }

  .home-hero__actions {
    flex-direction: column;
  }

  .home-hero__actions .home-btn {
    width: 100%;
  }

  /* Boat photo strip before title — mobile-specific crop */
  .home-hero__inner::before {
    content: "";
    display: block;
    height: min(52vw, 240px);
    margin: 0 calc(50% - 50vw) 16px;
    width: 100vw;
    background-image: url("../images/hero-mobile.jpg");
    background-size: cover;
    background-position: 55% 42%;
    background-repeat: no-repeat;
  }

  .home-hero .home-trust {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    margin-top: 0;
    padding: 12px 0 20px;
    background: #fff;
  }

  .home-trust__grid {
    background: #fff;
    border: 1px solid rgba(11, 92, 171, 0.1);
    box-shadow: 0 10px 28px rgba(15, 45, 82, 0.1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .home-section-head--decor::before,
  .home-section-head--decor::after {
    display: none;
  }
}
