:root {
  --navy: #1c2e4a;
  --sea: #2f7185;
  --gold: #b08d57;
  --paper: #fdfaf1;
  --paper-soft: #fffdf7;
  --text-dark: #2a2a2a;
  --muted: #62666f;
  --border: #d1c1a5;
  --shadow: 0 24px 70px rgba(10, 22, 36, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  background-color: #dfe9ea;
  background-image:
    linear-gradient(180deg, rgba(15, 35, 51, 0.42), rgba(253, 250, 241, 0.58)),
    url("./assets/yacht-klub.jpg");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  font-family: "Lora", serif;
  color: var(--text-dark);
  margin: 0;
  padding: 42px 20px;
}

.main-frame {
  max-width: 1040px;
  margin: 0 auto;
  background: rgba(253, 250, 241, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

header {
  text-align: center;
  border-bottom: 1px solid rgba(176, 141, 87, 0.5);
  margin-bottom: 0;
  padding: 58px 28px 48px;
  background:
    linear-gradient(180deg, rgba(28, 46, 74, 0.78), rgba(28, 46, 74, 0.62)),
    url("./assets/yacht-klub.jpg") center/cover;
  color: white;
}

main {
  padding: 48px 54px 0;
}

.club-logo-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.88);
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
  background-color: #00befc;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.logo-title {
  font-family: "Playfair Display", serif;
  font-size: 3.15rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.est-date {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #f4d89e;
  font-weight: 600;
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 35px;
  font-style: italic;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background-color: var(--gold);
  margin: 15px auto 0;
}

section {
  margin-bottom: 55px;
}

p {
  line-height: 1.8;
  font-size: 1.15rem;
  text-align: justify;
  margin-bottom: 25px;
  color: #333;
}

.club-banner-wrapper {
  text-align: center;
  margin: 38px auto 26px;
  max-width: 820px;
}

.club-banner {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(176, 141, 87, 0.42);
  border-radius: 8px;
  padding: 7px;
  background-color: white;
  box-shadow: 0 12px 34px rgba(28, 46, 74, 0.13);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 20px 0 4px;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(176, 141, 87, 0.35);
  box-shadow: 0 10px 26px rgba(28, 46, 74, 0.12);
}

.location-line {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 15px;
}

.location-line i {
  color: var(--gold);
  margin-right: 7px;
}

.map-wrapper {
  border: 1px solid rgba(28, 46, 74, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: white;
  margin: 25px 0;
  box-shadow: 0 12px 34px rgba(28, 46, 74, 0.13);
  overflow: hidden;
}

.map-wrapper iframe {
  display: block;
  border-radius: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  margin: 30px 0;
  background: rgba(176, 141, 87, 0.08);
  padding: 25px;
  border: 1px solid var(--gold);
  border-radius: 8px;
}

.stat-item {
  border-left: 3px solid var(--gold);
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 14px;
}

.stat-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.recovery-box {
  border: 1px solid rgba(192, 57, 43, 0.28);
  padding: 30px;
  background: linear-gradient(
    180deg,
    rgba(192, 57, 43, 0.055),
    rgba(255, 255, 255, 0.62)
  );
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(192, 57, 43, 0.07);
}

.recovery-box h3 {
  color: #c0392b;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.contacts-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 34px;
}

.contact-item {
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper-soft);
  border: 1px solid rgba(176, 141, 87, 0.28);
  border-radius: 8px;
}

.contact-item i {
  color: var(--gold);
  margin-right: 12px;
  width: 25px;
  text-align: center;
  font-size: 1.2rem;
}

.contact-link {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.contact-link:hover {
  color: var(--gold);
}

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  border-top: 1px solid var(--border);
  padding: 25px 20px 32px;
}

/* ── Tablet ─────────────────────────────────────── */
@media (max-width: 768px) {
  body {
    padding: 20px 12px;
    background-attachment: scroll; /* fixed часто глючить на мобілці */
  }

  .main-frame {
    border-radius: 8px;
  }

  header {
    margin-bottom: 0;
    padding: 36px 18px 32px;
  }

  main {
    padding: 32px 22px 0;
  }

  .club-logo-circle {
    width: 100px;
    height: 100px;
    margin-bottom: 14px;
  }

  .logo-title {
    font-size: 1.9rem;
    letter-spacing: 1px;
  }

  .est-date {
    font-size: 0.78rem;
    letter-spacing: 2px;
  }

  h2 {
    font-size: 1.45rem;
    margin-bottom: 22px;
  }

  section {
    margin-bottom: 38px;
  }

  p {
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 18px;
  }

  .club-banner-wrapper {
    margin: 24px 0;
  }

  .map-wrapper {
    padding: 6px;
  }

  .map-wrapper iframe {
    height: 260px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-desc {
    font-size: 0.82rem;
  }

  .recovery-box {
    padding: 20px 16px;
    margin: 28px 0;
  }

  .recovery-box h3 {
    font-size: 1.3rem;
    margin-bottom: 14px;
  }

  .contacts-box {
    grid-template-columns: 1fr;
    padding-top: 22px;
  }

  .contact-link {
    font-size: 1rem;
  }

  .contact-item i {
    font-size: 1rem;
    margin-right: 10px;
  }

  footer {
    font-size: 0.75rem;
    margin-top: 28px;
    padding-top: 18px;
  }
}

/* ── Phone ───────────────────────────────────────── */
@media (max-width: 480px) {
  body {
    padding: 12px 8px;
  }

  header {
    padding: 30px 14px 26px;
  }

  main {
    padding: 26px 14px 0;
  }

  .club-logo-circle {
    width: 80px;
    height: 80px;
  }

  .logo-title {
    font-size: 1.55rem;
    letter-spacing: 0.5px;
  }

  .est-date {
    font-size: 0.68rem;
    letter-spacing: 1.5px;
  }

  h2 {
    font-size: 1.25rem;
  }

  p {
    font-size: 0.92rem;
    text-align: left; /* justify виглядає погано на вузьких екранах */
  }

  .map-wrapper iframe {
    height: 220px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .recovery-box {
    padding: 16px 12px;
  }

  .recovery-box h3 {
    font-size: 1.15rem;
  }

  .contact-link {
    font-size: 0.92rem;
  }
}

/* ── Disclaimer ────────────────────────────────── */
.disclaimer {
  border-top: 2px solid var(--border);
  margin-top: 50px;
  padding-top: 35px;
  text-align: center;
}

.disclaimer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  margin-bottom: 22px;
}

.disclaimer-logos img {
  flex: 1 1 0;
  width: 0;
  max-width: 140px;
  height: 65px;
  object-fit: contain;
}

.disclaimer-text {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  color: var(--navy);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.8;
}

.disclaimer-text strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.disclaimer-divider {
  width: 50px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto;
}

@media (max-width: 768px) {
  .disclaimer-logos {
    gap: 12px;
  }

  .disclaimer-logos img {
    height: 50px;
    max-width: 110px;
  }

  .disclaimer-text {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .disclaimer-logos {
    gap: 8px;
  }

  .disclaimer-logos img {
    height: 40px;
    max-width: 80px;
  }
}

.social-fb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-fb span {
  font-size: 1rem;
  font-weight: 600;
}
