:root {
  --color-text: #161c21;
  --color-text-muted: #566066;
  --color-text-footer: #40484f;
  --color-primary: #0f618e;
  --color-primary-hover: #4a9fd4;
  --color-primary-btn: #1872b6;
  --color-primary-btn-hover: #0f618e;
  --color-icon: #4285b4;
  --color-white: #ffffff;
  --color-bg: #f6faff;
  --color-bg-soft: #f0f7ff;
  --color-bg-footer: #e5edf2;
  --color-star: #ffcc00;
  --color-overlay: rgba(0, 0, 0, 0.3);
  --color-badge: rgba(255, 255, 255, 0.9);
  --color-social-bg: rgba(15, 97, 142, 0.1);
  --color-dot-inactive: rgba(15, 97, 142, 0.2);

  --shadow-card: 0 20px 40px 0 rgba(66, 133, 180, 0.05);
  --shadow-booking: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  --shadow-media: 0 4px 6px -4px rgba(0, 0, 0, 0.1), 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  --font-main: "Manrope", sans-serif;

  --radius-sm: 12px;
  --radius-md: 15px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;
  --radius-btn: 30px;
  --radius-btn-lg: 100px;

  --container: 1152px;
  --gap-section: 72px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--color-bg-footer);
}

html.is-scroll-locked {
  overflow: hidden;
}

body.is-scroll-locked {
  overflow: hidden;
}

.header.is-scroll-locked-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  max-width: none;
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg-footer);
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
  background: var(--color-bg);
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

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

.button--primary {
  background: var(--color-primary-btn);
  color: var(--color-white);
}

.button--primary:hover {
  background: var(--color-primary-btn-hover);
  color: var(--color-white);
}

.button--sm {
  min-width: 162px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-btn-lg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.button--lg {
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button--card {
  width: 177px;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.0437em;
}

.button--booking {
  padding: 20px 40px;
  border-radius: var(--radius-btn-lg);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.0437em;
}

.button--contacts {
  width: 175px;
  height: 41px;
  padding: 14px 15px;
  border-radius: var(--radius-btn-lg);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.15;
  text-transform: uppercase;
}

.button__icon {
  width: 18px;
  height: 20px;
}

/* Social */

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-social-bg);
  transition: background-color 0.2s ease;
}

.social-link:hover {
  background: rgba(15, 97, 142, 0.18);
}

/* Section titles */

.section-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-text);
}

.section-title--center {
  text-align: center;
}

.section-title__line {
  width: 100px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--color-primary);
  border-radius: var(--radius-pill);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-sizing: border-box;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 20px 20px;
  min-height: 81px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-img {
  width: 74.47px;
  height: 40px;
  object-fit: contain;
}

.header__nav {
  flex: 1;
  min-width: 0;
}

.header__nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px 16px;
}

.header__nav-link {
  font-size: 12px;
  line-height: 1.23;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--color-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.header__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.header__phone {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-primary);
  text-align: right;
  transition: color 0.25s ease;
}

.header__phone:hover {
  color: var(--color-primary-hover);
}

.header__socials {
  display: flex;
  gap: 7px;
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header.is-menu-open .header__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.is-menu-open .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header.is-menu-open .header__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav-contacts {
  display: none;
}

/* Contacts */

.page-breadcrumb {
  padding: 40px 0 0;
}

.page-breadcrumb .breadcrumb {
  margin-bottom: 48px;
}

.contacts {
  padding: 0 0 40px;
}

.contacts--page {
  padding-bottom: var(--gap-section);
}

.contacts__subtitle {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.contacts__grid {
  display: grid;
  grid-template-columns: 396px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.contacts-card {
  min-width: 0;
  max-width: 100%;
  padding: 28px 24px;
  background: var(--color-white);
  border: 1px solid var(--color-bg-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.contacts-card__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts-card__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-footer);
}

.contacts-card__item span,
.contacts-card__phones {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contacts-card__icon {
  flex-shrink: 0;
  margin-top: 4px;
}

.contacts-card__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacts-card__phones a {
  transition: color 0.25s ease;
}

.contacts-card__phones a:hover {
  color: var(--color-primary-hover);
}

.contacts-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.contacts-card__socials {
  display: flex;
  gap: 7px;
}

.contacts__map {
  overflow: hidden;
  border-radius: var(--radius-md);
  min-width: 0;
  max-width: 100%;
  height: 419px;
}

.contacts__map > ymaps,
.contacts__map iframe,
.contacts__map > div {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
}

/* Footer */

.footer {
  flex-shrink: 0;
  background: var(--color-bg-footer);
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--color-text-footer);
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: 460px;
}

.footer__logo {
  width: 74.47px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer__tagline {
  max-width: 306px;
  font-size: 12px;
  line-height: 16px;
}

.footer__actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.footer__phone {
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-primary);
  text-align: right;
  transition: color 0.25s ease;
}

.footer__phone:hover {
  color: var(--color-primary-hover);
}

.footer__socials {
  display: flex;
  gap: 7px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer__legal {
  max-width: 520px;
}

.footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
}

.footer__address {
  margin-top: 22px;
  max-width: 400px;
  font-size: 14px;
}

.footer__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: 32px;
  font-size: 12px;
}

.footer__link:hover,
.footer__policy:hover {
  color: var(--color-primary);
}

.footer__aside {
  max-width: 400px;
  text-align: right;
}

.footer__policy {
  display: inline-block;
  font-size: 14px;
}

.footer__disclaimer {
  margin-top: 28px;
  font-size: 12px;
  line-height: 1.35;
}

/* Lead form modal */

.lead-modal[hidden] {
  display: none !important;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 28, 33, 0.55);
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: var(--shadow-booking);
}

.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.lead-modal__close:hover {
  color: var(--color-text);
}

.lead-modal__content {
  padding: 36px 32px 32px;
}

.lead-modal__eyebrow {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.1667em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lead-modal__title {
  margin: 0 0 12px;
  padding-right: 40px;
  font-weight: 700;
  font-size: 28px;
  line-height: 32px;
  color: var(--color-primary);
}

.lead-modal__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 24px;
  color: var(--color-text-muted);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lead-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lead-form__label {
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text);
}

.lead-form__input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(15, 97, 142, 0.18);
  border-radius: 14px;
  outline: none;
  font: inherit;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form__input:focus {
  border-color: rgba(15, 97, 142, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 114, 182, 0.08);
}

.lead-form__input::placeholder {
  color: rgba(86, 96, 102, 0.75);
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 20px;
  color: var(--color-text-muted);
}

.lead-form__checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--color-primary-btn);
}

.lead-form__consent-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.lead-form__message {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.lead-form__message.is-success {
  color: #2d7b46;
}

.lead-form__message.is-error {
  color: #b63d3d;
}

.lead-form__submit {
  align-self: flex-start;
  min-width: 177px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.0437em;
}

.lead-form__submit[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.lead-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Shared helpers */

.text-accent {
  color: var(--color-primary-btn);
}

.section-title__line--left {
  margin-left: 0;
  margin-right: auto;
}

.button--outline {
  background: var(--color-white);
  color: var(--color-primary-btn);
  border: 1px solid var(--color-primary-btn);
  box-sizing: border-box;
}

.button--outline:hover {
  background: var(--color-bg-soft);
}

.button--light {
  background: var(--color-white);
  color: var(--color-primary-btn);
}

.button--light:hover {
  background: var(--color-bg-soft);
}

.button--duration {
  display: inline-flex;
  width: 100%;
  max-width: 224px;
  padding: 10px 40px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-hero {
  padding: 40px 0 0;
  text-align: center;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 80px;
  font-size: 12px;
  line-height: 1.23;
  color: var(--color-text);
}

.breadcrumb__link {
  color: inherit;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__sep {
  color: var(--color-text);
}

.page-hero__title {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 40px;
  line-height: 46px;
  letter-spacing: -0.0375em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.page-hero__subtitle {
  max-width: 660px;
  margin: 0 auto;
  font-weight: 300;
  font-size: 20px;
  line-height: 28px;
  color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 1100px) {
  .header__burger {
    display: flex;

  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 16px 20px 24px;
    background: var(--color-white);
    border-top: 1px solid var(--color-bg-soft);
    box-shadow: 0 16px 32px rgba(15, 97, 142, 0.08);

  }

  .header.is-menu-open .header__nav {
    display: block;

  }

  .header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;

  }

  .header__nav-link {
    font-size: 16px;
    line-height: 1.4;

  }

  .contacts__grid {
    grid-template-columns: 1fr;

  }

  .contacts-card,
  .contacts__map {
    width: 100%;

  }

  .contacts__map {
    height: 280px;

  }

  .button--contacts {
    width: 100%;
    max-width: 100%;

  }
}

@media (max-width: 913px) {
  .footer__brand {
    flex: 0 1 32%;
    max-width: 260px;
    gap: 16px;

  }

  .footer__tagline {
    max-width: 160px;

  }

  .footer__actions {
    flex: 1 0 auto;
    justify-content: flex-end;

  }

  .footer__phone {
    white-space: nowrap;

  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 24px;
    line-height: 32px;

  }

  .page-hero {
    padding-top: 24px;
    text-align: left;

  }

  .page-breadcrumb {
    padding-top: 24px;

  }

  .page-breadcrumb .breadcrumb,
  .breadcrumb {
    margin-bottom: 32px;

  }

  .page-hero__title {
    font-size: 28px;
    line-height: 34px;

  }

  .page-hero__subtitle {
    font-size: 16px;
    line-height: 24px;

  }

  .button--light.button--lg {
    white-space: normal;
    padding: 14px 24px;

  }

  .header__actions {
    gap: 8px;

  }

  .header__phones,
  .header__socials {
    display: none;

  }

  .header__nav-contacts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-bg-soft);

  }

  .header__nav-phones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

  }

  .header__nav-phones .header__phone {
    text-align: center;

  }

  .header__nav-socials {
    display: flex;
    gap: 7px;

  }

  .button--sm {
    min-width: 0;
    padding: 0 14px;

  }

  .footer__top,
  .footer__bottom,
  .footer__brand,
  .footer__actions {
    flex-direction: column;
    align-items: center;

  }

  .footer__brand {
    max-width: 100%;
    text-align: center;

  }

  .footer__tagline {
    max-width: 100%;

  }

  .footer__phones {
    align-items: center;

  }

  .footer__phone,
  .footer__aside,
  .footer__legal,
  .footer__address,
  .footer__copy {
    text-align: center;

  }

  .footer__legal-row,
  .footer__copy {
    justify-content: center;
    flex-wrap: wrap;

  }

  .footer__disclaimer {
    margin-top: 16px;

  }

  .lead-modal {
    padding: 12px;
    align-items: flex-start;

  }

  .lead-modal__content {
    padding: 28px 20px 24px;

  }

  .lead-modal__title {
    font-size: 24px;
    line-height: 28px;

  }

  .lead-form__submit {
    width: 100%;
    align-self: stretch;

  }
}
