* {
  box-sizing: border-box;
}

:root {
  --stefun-primary: #79c6c0;
  --stefun-body: #878786;
  --stefun-bg: #79c6c0;
  --stefun-card: #ffffff;
  --stefun-text-dark: #878786;
  --stefun-heading-font: 'Pacifico', cursive;
  --stefun-body-font: 'Roboto', Arial, sans-serif;
  --stefun-border: rgba(121, 198, 192, 0.35);
  --stefun-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --stefun-error: #cf2e2e;
  --header-height: 4.25rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--stefun-body-font);
  font-size: 14px;
  line-height: 1.7;
  color: var(--stefun-body);
  background-color: var(--stefun-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--stefun-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Header / Nav —— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--stefun-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 2.5rem;
  width: auto;
}

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

.site-nav a {
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* —— Main layout —— */

.site-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.page-panel {
  background: var(--stefun-card);
  border: 1px solid var(--stefun-border);
  border-radius: 20px;
  box-shadow: var(--stefun-shadow);
  padding: 2rem 2.5rem;
}

.page-title {
  margin: 0 0 0.5rem;
  font-family: var(--stefun-heading-font);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  color: var(--stefun-primary);
  text-align: center;
  line-height: 1.2;
}

.page-lead {
  margin: 0 0 2rem;
  text-align: center;
  font-size: 1rem;
  color: var(--stefun-body);
}

/* —— Footer —— */

.site-footer {
  padding: 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
}

.site-footer a {
  color: #fff;
}

/* —— Blog —— */

.blog-post {
  max-width: 42rem;
  margin: 0 auto;
}

.blog-post__meta {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--stefun-body);
}

.blog-post__title {
  margin: 0 0 1rem;
  font-family: var(--stefun-heading-font);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  color: var(--stefun-primary);
  line-height: 1.25;
}

.blog-post__excerpt {
  margin: 0 0 1rem;
}

.blog-post__body {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--stefun-border);
}

.blog-post.is-expanded .blog-post__body {
  display: block;
}

.blog-post.is-expanded .blog-post__excerpt {
  display: none;
}

.blog-toggle {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 10px;
  background: var(--stefun-primary);
  color: #fff;
  font-family: var(--stefun-body-font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.blog-toggle:hover {
  filter: brightness(0.95);
}

/* —— Contact form —— */

.contact-form {
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 500;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--stefun-border);
  border-radius: 10px;
  font-family: var(--stefun-body-font);
  font-size: 1rem;
  color: var(--stefun-text-dark);
  background: #fff;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--stefun-primary);
  outline-offset: 1px;
}

.form-field textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-error {
  margin: 0;
  color: var(--stefun-error);
  font-size: 0.9rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
}

.form-success.is-visible {
  display: block;
}

.form-success h2 {
  margin: 0 0 0.5rem;
  font-family: var(--stefun-heading-font);
  font-size: 2rem;
  font-weight: 500;
  color: var(--stefun-primary);
}

.btn-primary {
  align-self: flex-start;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 10px;
  background: var(--stefun-primary);
  color: #fff;
  font-family: var(--stefun-body-font);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}

.captcha-row .form-field {
  flex: 1 1 10rem;
}

/* —— Online tools —— */

.tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
  margin-inline: auto;
}

.tools-list li + li {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stefun-border);
}

.tools-list a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--stefun-primary);
  text-decoration: none;
}

.tools-list a:hover {
  text-decoration: underline;
}

.tools-list p {
  margin: 0.35rem 0 0;
}

/* —— Dive map —— */

.map-panel {
  padding: 1rem;
}

#dive-map {
  width: 100%;
  height: min(70vh, 560px);
  border-radius: 14px;
  overflow: hidden;
  z-index: 1;
}

.dive-popup {
  text-align: center;
  min-width: 160px;
}

.dive-popup__title {
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--stefun-text-dark);
  font-size: 0.95rem;
}

.dive-popup img {
  width: 100%;
  max-width: 220px;
  border-radius: 8px;
  margin: 0 auto;
}

.dive-popup__caption {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: var(--stefun-body);
}

/* —— Responsive —— */

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--stefun-primary);
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: var(--stefun-shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .page-panel {
    padding: 1.5rem 1.25rem;
  }

  .map-panel {
    padding: 0.65rem;
  }

  #dive-map {
    height: min(60vh, 420px);
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }
}
