:root {
  --font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Montserrat Alternates", var(--font-family);
  --color-navy: #0e4b82;
  --color-navy-light: #1a3d5c;
  --color-sky: #4da6d9;
  --color-sky-light: #7ec4e8;
  --color-white: #ffffff;
  --color-white-muted: rgb(249, 249, 249);
  --color-price: #d62828;
  --color-text: #1e2a36;
  --color-text-muted: #5a6b7d;
  --radius-photo: 14px;
  --shadow-card: 0 8px 28px rgba(10, 37, 64, 0.1);
  --btn-gradient: linear-gradient(90deg, #3874ab 0%, #4699e7 100%);
  --btn-shadow: 0 4px 14px rgba(56, 116, 171, 0.3);
  --btn-shadow-hover: 0 6px 18px rgba(74, 159, 212, 0.45);
  --btn-radius: 16px;
  --title-gradient: linear-gradient(90deg, #1669ad 0%, #8fbadd 100%);
  --title-color: #1669ad;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white-muted);
}

.fa-icon {
  display: inline-block;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

h1, h2, h3, h4, h5,
.font-heading {
  font-family: var(--font-family);
  font-weight: 400;
  font-style: normal;
}

.navbar-brand__name {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--title-color);
}

/* Buttons — стиль баннерной кнопки */
.btn-gradient,
.site-banner__phone,
.btn-order,
.modal-order .btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  padding: 0.625rem 1.375rem;
  border: none;
  border-radius: var(--btn-radius);
  background: var(--btn-gradient);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--btn-shadow);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-gradient:hover,
.btn-gradient:focus,
.site-banner__phone:hover,
.site-banner__phone:focus,
.btn-order:hover,
.btn-order:focus,
.modal-order .btn-submit:hover,
.modal-order .btn-submit:focus {
  color: var(--color-white);
  background: var(--btn-gradient);
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}

.btn-gradient:active,
.site-banner__phone:active,
.btn-order:active,
.modal-order .btn-submit:active {
  transform: translateY(0) scale(0.98);
}

.text-italic,
.hero-subtitle {
  font-style: italic;
  font-weight: 400;
}

/* Header */
.site-header {
  background: var(--color-white);
  box-shadow: 0 1px 0 rgba(10, 37, 64, 0.08);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 992px) {
  .site-header .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    justify-content: initial;
  }
}

.site-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-self: start;
  color: var(--color-navy);
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  min-width: 0;
}

.site-header .navbar-brand:hover,
.site-header .navbar-brand:focus {
  color: var(--color-navy);
}

.site-header .navbar-brand__logo {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
}

.header-nav {
  justify-self: center;
}

.header-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav__link {
  color: var(--color-navy);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-nav__link:hover,
.header-nav__link:focus {
  color: var(--color-sky);
}

.header-contacts {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 1.25rem;
}

.header-contacts__phone {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-contacts__phone:hover,
.header-contacts__phone:focus {
  color: var(--color-sky);
}

.header-contacts__phone .fa-icon {
  flex-shrink: 0;
  width: 20px;
  font-size: 20px;
  color: var(--color-sky);
}

.header-contacts__messengers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-contacts__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-navy);
  background: var(--color-white-muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-contacts__icon:hover,
.header-contacts__icon:focus {
  background: var(--color-sky);
  color: var(--color-white);
}

.header-contacts__icon .fa-icon {
  width: 20px;
  font-size: 20px;
  color: currentColor;
}

.header-contacts__icon:hover .fa-icon,
.header-contacts__icon:focus .fa-icon {
  color: var(--color-white);
}

.site-header .navbar-toggler--waves {
  flex-shrink: 0;
  border: 1.5px solid #4392db;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  background: transparent;
  box-shadow: 0 0 0 0.2rem rgba(62, 194, 242, 0.35);
}

.site-header .navbar-toggler--waves:focus {
  box-shadow: 0 0 0 0.25rem rgba(62, 194, 242, 0.5);
}

.site-header .navbar-toggler-waves {
  display: block;
  width: 1.5rem;
  height: 1.125rem;
}

.site-header .navbar-toggler-waves svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-header .navbar-toggler-waves path {
  fill: none;
  stroke: #3ec2f2;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offcanvas-contacts {
  background: var(--color-navy);
  color: var(--color-white);
}

.offcanvas-contacts .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.offcanvas-contacts .btn-close {
  filter: invert(1);
}

.offcanvas-nav__list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.offcanvas-nav__link {
  display: block;
  padding: 0.85rem 1rem;
  margin-bottom: 0.35rem;
  border-radius: 10px;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.offcanvas-nav__link:hover,
.offcanvas-nav__link:focus {
  background: var(--color-navy-light);
  color: var(--color-white);
}

.offcanvas-contacts__title {
  margin: 0 0 0.75rem;
  padding: 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.offcanvas-contacts .contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  color: var(--color-white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}

.offcanvas-contacts .contact-link:hover {
  background: var(--color-navy-light);
  color: var(--color-white);
}

.offcanvas-contacts .contact-link .fa-icon {
  flex-shrink: 0;
  width: 22px;
  font-size: 22px;
  color: var(--color-sky-light);
}

/* Banner */
.site-banner {
  --banner-subtitle-color: #2c3e50;
  --banner-wave-color: #028dd3;
  --banner-website-color: #333333;

  display: block;
  width: 100%;
  background: var(--color-white-muted);
}

.site-banner__inner {
  display: grid;
  width: 100%;
}

.site-banner__inner > picture {
  grid-area: 1 / 1;
  display: block;
  line-height: 0;
}

.site-banner__img {
  display: block;
  width: 100%;
  height: auto;
}

.site-banner__overlay {
  grid-area: 1 / 1;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  pointer-events: none;
}

.site-banner__overlay > .container {
  position: relative;
  display: flex;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
  container-type: inline-size;
}

.site-banner__content {
  position: absolute;
  top: 25%;
  left: 50%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  line-height: 1.25;
  text-align: center;
}

.site-banner__actions {
  display: none;
}

@media (min-width: 768px) {
  .site-banner__overlay {
    justify-content: center;
  }

  .site-banner__overlay > .container {
    align-items: center;
    container-type: normal;
  }

  .site-banner__content {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    max-width: min(55%, 680px);
    transform: none;
    text-align: left;
  }

  .site-banner__actions {
    display: flex;
  }
}

.site-banner__title {
  margin: 0 0 0.44rem;
  font-weight: 900;
  font-size: min(2.74rem, max(1rem, calc(100cqw / 12.5)));
  line-height: 1.12;
  width: 100%;
}

.site-banner__title-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.site-banner__title-line:nth-child(1) {
  color: #005ba4;
  -webkit-text-fill-color: #005ba4;
}

.site-banner__title-line:nth-child(2) {
  color: #4699e7;
  -webkit-text-fill-color: #4699e7;
}

@media (min-width: 768px) {
  .site-banner__title {
    font-size: clamp(1rem, 2.8vw + 0.25rem, 4.25rem);
  }

  .site-banner__title-line:nth-child(1),
  .site-banner__title-line:nth-child(2) {
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.site-banner__subtitle {
  margin: 0 auto;
  max-width: 30ch;
  font-size: clamp(0.75rem, 3.2vw, 1rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--banner-subtitle-color);
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .site-banner__subtitle {
    margin: 0 0 0.625rem;
    max-width: none;
    font-size: clamp(0.625rem, 1.4vw + 0.25rem, 1.625rem);
    text-align: left;
    white-space: nowrap;
    text-wrap: wrap;
  }
}

.site-banner__wave {
  display: none;
  width: min(275px, 50%);
  height: auto;
  margin-bottom: clamp(0.75rem, 1.2vw, 1.25rem);
  overflow: visible;
  color: var(--banner-wave-color);
}

@media (min-width: 768px) {
  .site-banner__wave {
    display: block;
  }
}

.site-banner__actions {
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.35rem, 0.85vw, 1.25rem);
}

.site-banner__phone {
  flex-shrink: 0;
  font-size: clamp(0.6875rem, 1.3vw + 0.35rem, 2.25rem);
  padding: clamp(0.35rem, 0.45vw + 0.2rem, 0.625rem) clamp(0.55rem, 0.9vw + 0.25rem, 1.375rem);
}

.site-banner__phone:hover,
.site-banner__phone:focus {
  color: var(--color-white);
}

.site-banner__phone .fa-icon {
  font-size: 1.15em;
  color: currentColor;
}

.site-banner__website {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--banner-website-color);
  font-size: clamp(0.5625rem, 1vw + 0.25rem, 1.25rem);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.site-banner__website:hover,
.site-banner__website:focus {
  color: #1669ad;
}

.site-banner__website .fa-icon {
  font-size: 1.15em;
  color: currentColor;
}

/* Intro */
.intro-section {
  background: var(--color-white);
  padding: 1.75rem 0 1.5rem;
}

.intro-section h1 {
  font-size: clamp(1.35rem, 4vw, 2rem);
  color: var(--color-navy);
  margin-bottom: 0.65rem;
}

.intro-section p {
  margin: 0;
  max-width: 42rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Cards grid */
.catalog-section {
  padding: 2rem 0 3rem;
}

.yacht-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-white);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(77, 166, 217, 0.15);
}

.yacht-card__gallery {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}

.yacht-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.yacht-slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}

.yacht-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}

.yacht-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  pointer-events: none;
}

.yacht-slider__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}

.yacht-badge {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: rgba(10, 37, 64, 0.82);
  color: var(--color-white);
  backdrop-filter: blur(4px);
}

.yacht-slider__dots {
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0 0.35rem;
}

.yacht-slider__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-sky);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.yacht-slider__dot.is-active {
  opacity: 1;
  transform: scale(1.15);
  background: var(--color-navy);
}

.yacht-slider__dot:hover {
  opacity: 0.7;
}

.yacht-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin-top: auto;
  padding: 0.85rem 1rem 1rem;
}

.yacht-card__price {
  color: var(--color-price);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.yacht-card__price small {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.yacht-card__title {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.yacht-card__specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex: 1 1 auto;
}

.yacht-card__specs li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.yacht-card__specs li .fa-icon {
  flex-shrink: 0;
  width: 18px;
  font-size: 18px;
  margin-top: 2px;
  color: var(--color-sky);
}

.yacht-berth-link {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.yacht-berth-link .fa-icon {
  flex-shrink: 0;
  width: 18px;
  font-size: 18px;
  margin-top: 2px;
  color: var(--color-sky);
}

.yacht-berth-link span {
  min-width: 0;
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.yacht-berth-link:hover span,
.yacht-berth-link:focus span {
  color: #4699e7;
}

.modal-berth .modal-header,
.modal-order .modal-header {
  background: var(--btn-gradient);
  color: var(--color-white);
  border-bottom: none;
}

.modal-berth .modal-header .btn-close,
.modal-order .modal-header .btn-close {
  filter: invert(1);
}

.modal-berth__map {
  display: block;
  width: 100%;
  height: min(55vh, 380px);
  border: 0;
}

.modal-berth__footer {
  background: var(--color-white);
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  padding: 1rem 1.25rem;
}

.modal-berth__directions {
  width: 100%;
  margin-bottom: 0.5rem;
}

.modal-berth__directions-external {
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-berth__directions-external:hover,
.modal-berth__directions-external:focus {
  color: var(--color-navy);
}

.modal-berth__metro-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
}

.modal-berth__metro-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-berth__metro-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--color-text);
}

.metro-line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.modal-berth__metro-station {
  font-weight: 500;
  color: var(--color-navy);
}

.modal-berth__metro-distance {
  color: var(--color-text-muted);
}

.modal-berth__metro-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--color-text-muted);
}

.metro-icon {
  flex-shrink: 0;
  font-size: 14px;
  color: currentColor;
}

.btn-order {
  width: 100%;
}

/* Order modal */

.modal-order .modal-title {
  font-size: 1.1rem;
}

.modal-order .yacht-order-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.15rem;
}

.modal-order .form-label {
  font-weight: 500;
  color: var(--color-navy);
}

.modal-order .form-control:focus {
  border-color: var(--color-sky);
  box-shadow: 0 0 0 0.2rem rgba(77, 166, 217, 0.25);
}

.modal-order .btn-submit {
  width: 100%;
}

.modal-order .form-consent .form-check-label {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.modal-order .form-consent .form-check-label a {
  color: var(--title-color);
}

.modal-order .form-consent .form-check-input {
  border-color: rgba(10, 37, 64, 0.35);
}

.modal-order .form-consent .form-check-input:checked {
  background-color: #4699e7;
  border-color: #4699e7;
}

.modal-order .form-consent.is-invalid .form-check-label {
  color: var(--color-price);
}

.cookie-notice {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1080;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--color-white);
  border: 1px solid rgba(67, 146, 219, 0.35);
  box-shadow: 0 8px 28px rgba(10, 37, 64, 0.12);
}

@media (max-width: 575.98px) {
  .cookie-notice {
    max-width: 60%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .cookie-notice__text {
    width: 100%;
    flex: none;
  }

  .cookie-notice__ok {
    margin-left: 0;
    align-self: flex-end;
  }
}

.cookie-notice__text {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.cookie-notice__ok {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.4rem 1.15rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  text-align: center;
}

@media (min-width: 768px) {
  .intro-section {
    padding: 2.25rem 0 2rem;
  }
}
