/* Экскурсии по острову Русский — стили лендинга */

:root {
  --color-ocean: #0c4a6e;
  --color-ocean-light: #0369a1;
  --color-sea: #0ea5e9;
  --color-sand: #f0f9ff;
  --color-gold: #d97706;
  --color-gold-light: #fbbf24;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --color-white: #ffffff;
  --shadow: 0 4px 24px rgba(12, 74, 110, 0.12);
  --shadow-lg: 0 12px 48px rgba(12, 74, 110, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-sand);
}

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

a {
  color: var(--color-ocean-light);
  text-decoration: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-ocean);
  font-weight: 600;
  font-size: 1rem;
}

.logo__icon {
  font-size: 1.4rem;
}

.logo strong {
  color: var(--color-sea);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--color-ocean-light);
}

.nav__cta {
  background: linear-gradient(135deg, var(--color-ocean-light), var(--color-sea));
  color: var(--color-white) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
}

.nav__cta:hover {
  filter: brightness(1.08);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-ocean);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(12, 74, 110, 0.85) 0%,
    rgba(3, 105, 161, 0.55) 45%,
    rgba(15, 23, 42, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.hero__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-ocean);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn__loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(12, 74, 110, 0.2);
  border-top-color: var(--color-ocean);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-white);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-ocean);
  margin: 0 0 1rem;
  text-align: center;
}

.section__lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* Offer */
.offer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.offer-card {
  background: var(--color-white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.offer-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.offer-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  color: var(--color-ocean);
}

.offer-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* About */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-ocean);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.about__text .section__title {
  text-align: left;
}

.about__text p {
  margin: 0 0 1rem;
  color: var(--color-text);
}

.about__quote {
  font-style: italic;
  color: var(--color-ocean-light);
  border-left: 4px solid var(--color-sea);
  padding-left: 1rem;
  margin: 1.5rem 0 2rem !important;
}

/* Places */
.places__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.place-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.place-card:hover {
  transform: translateY(-4px);
}

.place-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.place-card--wide .place-card__img {
  min-height: 280px;
}

.place-card__img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.place-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.place-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-ocean);
}

.place-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Booking */
.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.booking__info .section__title {
  text-align: left;
}

.booking__list {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--color-muted);
}

.booking__list li {
  margin-bottom: 0.5rem;
}

.booking-form {
  background: var(--color-sand);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-ocean);
}

.optional {
  font-weight: 400;
  color: var(--color-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid rgba(12, 74, 110, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-sea);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #dc2626;
}

.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  cursor: pointer;
}

.form-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-message {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}

.form-message--success {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: #065f46;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #34d399;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(5, 150, 105, 0.22);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.45s ease;
}

.form-message--success.form-message--show {
  opacity: 1;
  transform: translateY(0) scale(1);
  box-shadow: 0 12px 40px rgba(5, 150, 105, 0.28);
  animation: form-success-glow 2s ease 0.5s 2;
}

.form-message__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #059669;
  color: var(--color-white);
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.6, 0.64, 1) 0.15s;
}

.form-message--success.form-message--show .form-message__icon {
  transform: scale(1);
}

.form-message__text {
  flex: 1;
}

@keyframes form-success-glow {
  0%,
  100% {
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.28);
  }
  50% {
    box-shadow: 0 12px 48px rgba(5, 150, 105, 0.42);
  }
}

.form-message--error {
  color: #dc2626;
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .form-message--success,
  .form-message--success.form-message--show,
  .form-message__icon {
    transition: none;
    animation: none;
    transform: none;
    opacity: 1;
  }

  .form-message--success.form-message--show .form-message__icon {
    transform: none;
  }
}

/* Footer */
.footer {
  background: var(--color-ocean);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__brand {
  margin: 0;
  font-size: 0.9rem;
}

.footer__phone {
  color: var(--color-gold-light);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}

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

.footer__top {
  color: var(--color-gold-light);
  font-weight: 600;
}

/* Mobile nav */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .about__inner,
  .booking__inner {
    grid-template-columns: 1fr;
  }

  .place-card--wide {
    grid-template-columns: 1fr;
  }

  .about__text .section__title,
  .booking__info .section__title {
    text-align: center;
  }

  .about__text {
    text-align: center;
  }

  .about__quote {
    text-align: left;
  }
}
