body {
margin: 0;
font-family: "Nunito", "Segoe UI", Arial, sans-serif;
color: white;
background-color: #0D0E22;
background-image: url("images/dive.jpg");
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
background-attachment: fixed;
position: relative;
z-index: 0;
}

/* Глобальні H2: вужче за контейнер */
h2 {
max-width: 960px;
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
line-height: 1.1;
text-align: center;
font-weight: 800;
font-size: 3rem;
}

/* Глобальні абзаци: вужче за контейнер, ліворуч */
p {
max-width: 960px;
margin-left: auto;
margin-right: auto;
margin-bottom: 30px;
text-align: left;
font-size: 1.1rem;
opacity: 0.9;
line-height: 1.3;
}

a {
color: #EFCF80;
text-decoration: none; /* якщо не хочеш стандартного підкреслення */
}

a:hover {
color: #F9B198; /* будь-який твій колір при наведенні */
}

a:visited {
color: #EFCF80; /* щоб не мінявся на фіолетовий */
}

.highlight {
color: #EFCF80;
}

/* Виняток: p у квадратах функцій */
.feature-card p {
max-width: none;
margin: 0;
margin-left: 0;
margin-right: 0;
text-align: center;
}

/* Універсальний контейнер для секцій */
.section-inner {
width: 90%;
max-width: 1100px;
margin: 0 auto;
box-sizing: border-box;
}

body::before {
content: "";
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background: linear-gradient(
to bottom,
rgba(130, 205, 230, 0.9) 0%,
rgba(40, 130, 180, 0.99) 100%
);
z-index: -1;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5, 20, 60, 0.1); /* темно-синя напівпрозора смуга */
  backdrop-filter: blur(8px);
  z-index: 9999;
  transition: transform 0.25s ease;
}

.top-bar.nav-hidden {
  transform: translateY(-100%);
}

.site-logo img {
  display: block;
  height: 75px;
  width: auto;
}

.top-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-menu li {
  position: relative;
}

.top-menu > ul > li > a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  opacity: 0.95;
  padding: 6px 0;
}

.top-menu > ul > li > a:hover {
  color: #1a6b91;
}

.right-block {
  display: flex;
  align-items: center;
  gap: 24px;
}

.login-btn {
  margin-left: 24px;
  padding: 10px 22px;
  color: white;
  text-decoration: none;
  font-size: 1rem;
  background: #2387b3;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.login-btn:hover {
  background: #1a6b91;
}

/* випадаюче меню (якщо додаси підменю) */
.top-menu li ul {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(5, 20, 60, 0.95);
  padding: 8px 0;
  list-style: none;
  min-width: 180px;
  display: none;
}

.top-menu li ul li a {
  display: block;
  padding: 8px 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.95;
}

.top-menu li ul li a:hover {
  background: rgba(26, 107, 145, 0.9);
}

/* показувати підменю при наведенні */
.top-menu li:hover > ul {
  display: block;
}

.hero {
  padding: 120px 0 0;
}

.hero-inner {
width: 90%;
max-width: 1100px;
margin: 0 auto;
box-sizing: border-box;
}

.hero-content {
width: 100%;
max-width: 1100px;
padding: 0;
margin: 0;
text-align: center;
box-sizing: border-box;
}

.hero-title {
margin: 15px 0 20px 0;
font-weight: 800;
line-height: 1.02;
color: #ffffff;
font-size: clamp(5rem, 7vw, 8rem);
text-shadow: -2px 2px 5px rgba(0, 0, 0, 0.2);
display: block;
width: 100%;
box-sizing: border-box;
white-space: normal;
word-break: break-word;
}

/* Опис під назвою сайту */
.hero-subtitle {
margin: 0 0 18px 0;
color: #1a6b91;
font-size: 1.5rem;
font-weight: 700;
text-align: center;
max-width: none;
margin-left: 0;
margin-right: 0;
}

@media (max-width: 820px) {
.hero-inner { padding: 0 16px; }
.hero-content { max-width: 100%; }
.hero-title {
width: 100%;
max-width: none;
font-size: clamp(1.6rem, 8.5vw, 2.4rem);
}
}

.hero-highlights {
display: flex;
gap: 40px;
align-items: center;
justify-content: center;
flex-wrap: wrap;
margin-top: 50px;
margin-bottom: 50px;
font-weight: 700;
color: #e6f6ff;
font-size: 1.2rem;
box-sizing: border-box;
}

.check {
color: #F9B198;
}

.hero-highlights span {
opacity: 0.95;
display: inline-block;
white-space: nowrap;
}

@media (max-width: 600px) {
.hero-highlights {
gap: 12px;
font-size: 0.9rem;
}
}

/* Три “круги” в Hero */
.hero-squares {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
max-width: 820px;
margin: 18px auto 0;
align-items: flex-start;
justify-items: center;
}

.hero-squares .feature-card {
background: transparent;
box-shadow: none;
}

.hero-squares .feature-card h3 {
margin-top: 0;
}

.hero-squares .feature-card p {
color: #d7eaf7;
}

/* Секція з описом функцій (9 квадратів) */
.features-section {
padding: 20px 0 20px;
}

/* Описовий текст під H2 у секції функцій */
.features-description {
margin: 0 auto 40px auto;
}

/* Дев'ять квадратів із описом функцій */
.features-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 32px;
width: 90%;
max-width: 1100px;
margin: 0 auto;
}

.feature-card {
background-color: rgba(26, 28, 51, 0.2);
padding: 28px;
border-radius: 12px;
text-align: center;
}

.feature-card h3 {
font-weight: bold;
font-size: 22px;
margin-top: 18px;
margin-bottom: 10px;
}

.feature-icon {
width: 72px;
height: 72px;
border-radius: 50%;
border: 3px solid currentColor;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 16px;
color: inherit;
}

.feature-icon img {
width: 58%;
height: 58%;
filter: none;
display: block;
}

@media (max-width: 900px) {
.features-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 600px) {
.features-grid {
grid-template-columns: 1fr;
}
}

.dive-description-section {
  padding: 40px;
}

/* Це блок тексту з картинкою */
.info-block .info-layout {
padding-top: 20px;
padding-bottom: 40px;
max-width: 960px;
margin: 0 auto;
display: flex;
align-items: center;
gap: 20px;
}

.info-text {
flex: 1.1;
}

.info-visual {
flex: 1;
}

.info-text h2 {
text-align: left;
}

.info-visual .feature-card {
width: 100%;
max-width: 360px;
}

@media (max-width: 800px) {
.info-layout {
flex-direction: column;
gap: 20px;
}
.info-text,
.info-visual {
width: 100%;
flex: none;
}
}

.contact {
margin-top: 40px;
}

.site-footer {
margin-top: 60px;
padding: 20px 0;
text-align: center;
line-height: 1.3;
font-weight: 400;
font-size: 0.9rem;
opacity: 0.5;
}
