:root {
  --ink: #14203b;
  --blue: #173f67;
  --deep-blue: #0c2948;
  --cream: #f6f0e7;
  --paper: #fffdf9;
  --coral: #e46f58;
  --line: rgba(20, 32, 59, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

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

.site-header {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr auto 1fr;
  min-height: 92px;
  padding: 18px clamp(24px, 5vw, 80px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  width: fit-content;
}

.brand__mark {
  align-items: center;
  background: var(--coral);
  border-radius: 50% 50% 50% 12%;
  color: white;
  display: flex;
  font-family: "Prata", serif;
  font-size: 23px;
  height: 48px;
  justify-content: center;
  transform: rotate(-7deg);
  width: 48px;
}

.brand__mark::first-letter {
  transform: rotate(7deg);
}

.brand strong,
.brand small,
.header-phone span,
.header-phone small {
  display: block;
}

.brand strong {
  font-family: "Prata", serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand small {
  color: #697185;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-top: 2px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--coral);
}

.header-phone {
  justify-self: end;
  text-align: right;
}

.header-phone span {
  font-weight: 700;
}

.header-phone small {
  color: #7b8291;
  font-size: 11px;
  margin-top: 3px;
}

.hero {
  background: var(--blue);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  min-height: 640px;
  overflow: hidden;
}

.hero__content {
  align-self: center;
  max-width: 730px;
  padding: 84px clamp(28px, 7vw, 110px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.eyebrow--blue {
  color: #537392;
}

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

h1,
h2 {
  font-family: "Prata", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(48px, 5.8vw, 88px);
  line-height: 1.07;
  margin-bottom: 32px;
}

.hero__lead {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 38px;
  max-width: 590px;
}

.button {
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  padding: 16px 26px;
}

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

.hero__visual {
  background: linear-gradient(155deg, #f0c59d 0%, #df8d78 48%, #d26f69 100%);
  min-height: 640px;
  overflow: hidden;
  position: relative;
}

.sun {
  background: rgba(255, 245, 214, 0.85);
  border-radius: 50%;
  height: 230px;
  position: absolute;
  right: 12%;
  top: 10%;
  width: 230px;
}

.sea {
  bottom: 0;
  left: -10%;
  position: absolute;
  transform: rotate(-3deg);
  width: 120%;
}

.sea--back {
  background: #547c8a;
  border-radius: 48% 50% 0 0;
  height: 39%;
}

.sea--front {
  background: #1c5068;
  border-radius: 53% 45% 0 0;
  height: 28%;
  transform: rotate(3deg);
}

.ship {
  bottom: 25%;
  height: 180px;
  left: 13%;
  position: absolute;
  width: 330px;
  z-index: 2;
}

.ship__body {
  background: #f7f0e7;
  border-radius: 8px 12px 90% 35%;
  bottom: 0;
  display: block;
  height: 80px;
  transform: skewX(-8deg);
  width: 100%;
}

.ship__deck {
  background: var(--deep-blue);
  border-radius: 5px 28px 2px 2px;
  bottom: 74px;
  display: block;
  height: 68px;
  left: 70px;
  position: absolute;
  width: 175px;
}

.ship__deck::after {
  background: repeating-linear-gradient(90deg, #d7e9ed 0 12px, transparent 12px 21px);
  content: "";
  height: 10px;
  left: 18px;
  position: absolute;
  top: 17px;
  width: 130px;
}

.hero__note {
  bottom: 8%;
  color: white;
  font-size: 13px;
  line-height: 1.7;
  position: absolute;
  right: 8%;
  text-align: right;
  z-index: 3;
}

.hero__note strong {
  font-size: 18px;
}

.search-section,
.directions,
.advantages {
  padding: 104px clamp(24px, 7vw, 110px);
}

.section-heading {
  align-items: end;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  margin-bottom: 46px;
}

.section-heading--compact {
  grid-template-columns: 1fr;
}

.section-heading h2,
.advantages h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.15;
  margin-bottom: 0;
}

.section-heading > p {
  color: #697185;
  line-height: 1.7;
  margin-bottom: 4px;
}

.widget-placeholder {
  align-items: center;
  color: #51677d;
  display: flex;
  flex-direction: column;
  height: 210px;
  justify-content: center;
  text-align: center;
}

.widget-placeholder__badge {
  background: #e5edf3;
  border-radius: 999px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.widget-placeholder strong {
  color: var(--ink);
  font-family: "Prata", serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.widget-placeholder small {
  font-size: 13px;
}

.directions {
  background: var(--cream);
}

.direction-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.direction-card {
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
  padding: 28px;
}

.direction-card > span {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.55;
}

.direction-card p {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.direction-card h3 {
  font-family: "Prata", serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 0;
}

.direction-card > strong {
  font-size: 13px;
}

.direction-card--coral {
  background: #d97866;
  color: white;
}

.direction-card--sand {
  background: #dac8a9;
}

.direction-card--blue {
  background: #244e70;
  color: white;
}

.advantages {
  align-items: start;
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 1fr;
}

.advantages__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.advantages__list li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 30px;
  grid-template-columns: 110px 1fr;
  padding: 24px 0;
}

.advantages__list strong {
  color: var(--coral);
  font-family: "Prata", serif;
  font-size: 32px;
  font-weight: 400;
}

.advantages__list span {
  color: #697185;
  line-height: 1.5;
}

.site-footer {
  align-items: center;
  background: var(--deep-blue);
  color: white;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 54px clamp(24px, 7vw, 110px);
}

.brand--footer small,
.site-footer p {
  color: rgba(255, 255, 255, 0.64);
}

.site-footer p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.site-footer__legal {
  justify-self: end;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 430px;
  }

  .section-heading,
  .advantages {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .direction-card {
    min-height: 230px;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__legal {
    justify-self: start;
  }
}

@media (max-width: 600px) {
  .site-header {
    min-height: 78px;
  }

  .header-phone small {
    display: none;
  }

  .header-phone span {
    font-size: 12px;
  }

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

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .hero__content {
    padding-bottom: 70px;
    padding-top: 70px;
  }

  .hero__visual {
    min-height: 340px;
  }

  .ship {
    left: 4%;
    transform: scale(0.78);
    transform-origin: left bottom;
  }

  .search-section,
  .directions,
  .advantages {
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

/* Панель настроек остаётся доступной при прокрутке и размытии сайта. */
html {
  scroll-padding-top: 72px;
}

.demo-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  padding: 10px clamp(18px, 3vw, 48px);
  background: #112e44;
  color: #f8fafb;
  font-size: 13px;
}

.demo-toolbar__title {
  flex: none;
  font-size: 14px;
}

.demo-toolbar__options {
  display: flex;
  gap: clamp(12px, 2vw, 28px);
}

.demo-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  cursor: pointer;
}

.demo-switch input {
  appearance: none;
  position: relative;
  flex: none;
  width: 31px;
  height: 18px;
  margin: 0;
  border: 1px solid #8aa0ad;
  border-radius: 12px;
  background: #365064;
  cursor: pointer;
}

.demo-switch input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f8fafb;
}

.demo-switch input:checked {
  border-color: #ffb5a2;
  background: #ffb5a2;
}

.demo-switch input:checked::before {
  background: var(--deep-blue);
  transform: translateX(13px);
}

.demo-toolbar :focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.demo-toolbar__jump {
  margin-left: auto;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* «Уши» занимают место за пределами всей страницы агентства. */
body:has(#demo-ears:checked) {
  --demo-wing-width: clamp(28px, 5vw, 100px);
}

body > :is(.site-header, main, .site-footer) {
  margin-inline: var(--demo-wing-width, 0px);
}

.demo-wing {
  position: fixed;
  inset-block: 0;
  display: grid;
  place-items: center;
  width: var(--demo-wing-width, 0px);
  overflow: hidden;
  pointer-events: none;
  background-color: #d7e5e7;
  background-image: repeating-radial-gradient(
    ellipse at 0 50%, transparent 0 14px, #74969c55 15px 16px, transparent 17px 24px
  );
  background-size: 140px 260px;
}

.demo-wing--left {
  left: 0;
}

.demo-wing--right {
  right: 0;
  transform: rotate(180deg);
}

.demo-wing span {
  padding: 16px 4px;
  background: #d7e5e7;
  color: #345e68;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  writing-mode: vertical-rl;
}

.demo-search-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.5vw, 24px);
}

.demo-widget-area {
  flex: 1 1 0%;
  min-width: 0;
}

#cruise-search-widget:not(:empty) + .demo-widget-status {
  display: none;
}

.demo-widget-status {
  margin: 0;
  padding: 32px 20px;
  border: 1px dashed #9baeb9;
  border-radius: 12px;
  background: #f3f7f8;
  color: #415e70;
  line-height: 1.6;
  text-align: center;
}

.demo-sidebar {
  display: none;
  flex: 0 0 var(--demo-sidebar-width, clamp(180px, 16vw, 248px));
  min-width: 0;
  gap: 16px;
  font-size: 14px;
  line-height: 1.55;
}

#content-right {
  --demo-sidebar-width: clamp(208px, 18vw, 284px);
}

body:has(#demo-left:checked) #content-left,
body:has(#demo-right:checked) #content-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.demo-panel {
  min-width: 0;
  padding: clamp(16px, 1.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-wrap: anywhere;
}

.demo-panel h3 {
  margin: 0 0 16px;
  font: 400 clamp(20px, 1.5vw, 24px)/1.25 "Prata", serif;
}

.demo-menu {
  background: var(--cream);
}

.demo-menu h4 {
  margin: 24px 0 4px;
  color: #536679;
  font-size: 13px;
}

.demo-guide {
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-guide li + li,
.demo-tips details + details {
  border-top: 1px solid var(--line);
}

.demo-guide a {
  display: block;
  padding-block: 9px;
  font-weight: 700;
}

.demo-guide small {
  display: block;
  margin-top: 2px;
  color: #4c6374;
  font-weight: 400;
}

.demo-panel a:hover,
.demo-tips summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-tips summary {
  padding-block: 10px;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.demo-tips summary::marker {
  color: var(--coral);
}

.demo-tips p {
  margin: 0 0 12px;
}

.demo-checklist {
  background: #edf3f2;
}

.demo-checklist label {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding-block: 6px;
  cursor: pointer;
}

.demo-checklist input {
  flex: none;
  margin: 0;
  accent-color: var(--blue);
}

.demo-contacts {
  background: var(--deep-blue);
  color: white;
}

.demo-contacts address {
  font-style: normal;
}

.demo-help-phone {
  display: block;
  font-size: clamp(16px, 1.25vw, 21px);
  font-weight: 800;
}

.demo-contacts small,
.demo-contacts dt {
  color: #c1d6e1;
}

.demo-contacts dl {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #ffffff40;
}

.demo-contacts dt {
  font-size: 12px;
}

.demo-contacts dd {
  margin: 2px 0 12px;
}

.demo-contacts dd:last-child {
  margin-bottom: 0;
}

.demo-feedback {
  background: #e5edf0;
}

.demo-feedback form,
.demo-feedback label {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.demo-feedback form {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.demo-feedback label {
  font-weight: 700;
}

.demo-feedback input,
.demo-feedback select,
.demo-feedback textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #899fa9;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.demo-feedback textarea {
  resize: vertical;
}

.demo-feedback button {
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.demo-feedback button:hover {
  background: var(--deep-blue);
}

.demo-feedback small {
  color: #4c6374;
}

#feedback-status {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
}

#feedback-status:empty {
  margin-top: -14px;
}

@media (min-width: 901px) and (max-width: 1150px) {
  body:has(#demo-left:checked, #demo-right:checked) .search-section {
    padding-inline: 2.5vw;
  }
}

/* Размываем элементы агентства по отдельности, чтобы сохранить работу виджета и его окон. */
body:has(#demo-blur:checked) :is(.demo-surrounding, .demo-wing) {
  filter: blur(4px);
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 100px;
  }

  .demo-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
  }

  .demo-toolbar__options {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .demo-toolbar__jump {
    grid-column: 2;
    grid-row: 1;
  }

  .demo-search-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-sidebar,
  .demo-widget-area {
    flex: none;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  body:has(#demo-left:checked) #content-left,
  body:has(#demo-right:checked) #content-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .demo-menu {
    grid-row: span 2;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 130px;
  }

  .demo-toolbar__options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
  }

  body:has(#demo-ears:checked) {
    --demo-wing-width: clamp(8px, 2.5vw, 15px);
  }

  .demo-wing span {
    display: none;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: clamp(36px, 11vw, 44px);
  }

  .advantages__list li {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
  }

  .direction-card {
    padding: 20px;
  }

  .direction-card h3 {
    font-size: 24px;
  }
}

@media (max-height: 440px) {
  html {
    scroll-padding-top: 10px;
  }

  .demo-toolbar {
    position: relative;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .demo-switch input {
    appearance: auto;
    width: 18px;
  }

  .demo-switch input::before {
    display: none;
  }
}
