:root {
  --primary-color: #2C7FB2;
  --secondary-color: #1A5C85;
  --accent-color: #4AABB8;
  --light-color: #EEF7FA;
  --dark-color: #0D1F2D;
  --gradient-primary: linear-gradient(135deg, #4AABB8 0%, #2C7FB2 100%);
  --hover-color: #0F3A52;
  --background-color: #F2F8FA;
  --text-color: #1A2E3B;
  --border-color: rgba(44, 127, 178, 0.16);
  --divider-color: rgba(26, 92, 133, 0.12);
  --shadow-color: rgba(44, 127, 178, 0.09);
  --highlight-color: #F0A55A;
  --main-font: 'Lora', serif;
  --alt-font: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.7;
}

html { scroll-behavior: smooth; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--main-font);
  font-weight: 700;
  line-height: 1.3;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

header {
  background: var(--dark-color);
  color: var(--light-color);
  padding: 1.2rem 0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(13, 31, 45, 0.40);
  border-bottom: 3px solid var(--accent-color);
}

header .container { display: flex; justify-content: space-between; align-items: center; }

.logo img { height: 50px; width: auto; }

.navigation ul { display: flex; list-style: none; gap: 2rem; margin: 0; }

.navigation a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.navigation a:hover { color: var(--highlight-color); }

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
}

.hamburger .line {
  width: 28px; height: 3px;
  background-color: var(--light-color);
  margin: 3px 0; transition: 0.3s; border-radius: 2px;
}

#menu-toggle { display: none; }

#menu-toggle:checked ~ .mobile-nav { max-height: 400px; opacity: 1; }

.mobile-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #0D1F2D;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 1000;
  border-top: 2px solid var(--accent-color);
}

.mobile-nav ul { padding: 2rem; margin: 0; list-style: none; }
.mobile-nav li { margin: 1rem 0; }

.mobile-nav a {
  display: block; padding: 1.2rem 1.8rem;
  color: var(--light-color); text-decoration: none;
  border-radius: 10px; transition: all 0.3s ease;
  font-size: 1.05rem; font-weight: 500;
  border: 1px solid transparent;
}

.mobile-nav a:hover {
  background-color: rgba(74, 171, 184, 0.15);
  border-color: var(--accent-color);
  transform: translateX(5px);
}

.hero {
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  position: relative; color: white; text-align: center;
  min-height: 82vh;
}

.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(13,31,45,0.82) 0%, rgba(44,127,178,0.52) 100%);
}

.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 2rem; }

.hero h1 { font-size: 3rem; margin-bottom: 1.5rem; text-shadow: 1px 2px 6px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; line-height: 1.8; }

button, .btn {
  transition: all 0.3s ease; position: relative; overflow: hidden;
  background: var(--gradient-primary); color: white; border: none;
  padding: 1.2rem 2.5rem; border-radius: 6px; font-weight: 600;
  font-family: var(--alt-font); cursor: pointer; font-size: 1rem;
  text-decoration: none; display: inline-block; text-align: center;
  box-shadow: 0 3px 12px rgba(44,127,178,0.35);
  text-transform: uppercase; letter-spacing: 0.5px;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44,127,178,0.48);
  background: linear-gradient(135deg, #0F3A52 0%, #0D1F2D 100%);
}

section { padding: 4rem 0; }

.pattern-bg {
  background-color: var(--background-color);
  background-image:
    linear-gradient(120deg, rgba(74,171,184,0.05) 0%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(44,127,178,0.03) 0px, rgba(44,127,178,0.03) 1px, transparent 1px, transparent 20px);
}

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 3rem;
}

/* v6: карточки — тёмный заголовок, белое тело */
.feature-card {
  transition: all 0.3s ease;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px var(--shadow-color);
  border: 1px solid var(--border-color);
  text-align: center;
}

.feature-card-top {
  background: var(--dark-color);
  padding: 1.75rem 1.5rem 1.5rem;
}

.feature-icon {
  font-size: 2.4rem;
  display: flex; justify-content: center; align-items: center;
  width: 72px; height: 72px;
  margin: 0 auto 1rem auto;
  background: rgba(74,171,184,0.15);
  border: 2px solid rgba(74,171,184,0.35);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-card:hover { transform: translateY(-7px); box-shadow: 0 14px 32px rgba(44,127,178,0.22); }
.feature-card:hover .feature-icon { background: var(--gradient-primary); border-color: var(--accent-color); }

.feature-card-top h3 { color: var(--light-color); font-size: 1.05rem; margin: 0; }

.feature-card-body { padding: 1.5rem; }
.feature-card-body p { font-size: 0.95rem; line-height: 1.65; color: var(--text-color); }

.testimonial {
  transition: all 0.3s ease; border: 1px solid var(--border-color);
  position: relative; background: white; padding: 2.5rem; margin: 1.5rem 0;
  border-radius: 8px; box-shadow: 0 2px 10px var(--shadow-color);
}

.testimonial::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0;
  width: 5px; background: var(--gradient-primary);
  border-radius: 0 8px 8px 0;
}

.testimonial:hover { transform: translateX(-6px); box-shadow: 0 6px 22px rgba(44,127,178,0.18); }

.faq-item {
  border: 2px solid var(--border-color); transition: all 0.3s ease;
  background: white; padding: 2.5rem; margin: 1.5rem 0;
  border-radius: 12px; box-shadow: 0 3px 12px var(--shadow-color);
}

.faq-item:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgba(44,127,178,0.18);
  border-color: var(--accent-color);
}

.faq-item h3 { color: var(--primary-color); margin-bottom: 1rem; }

input, textarea {
  width: 100%; transition: all 0.3s ease; font-family: var(--alt-font);
  border: 2px solid var(--border-color); border-radius: 8px; padding: 1.2rem;
  background-color: white; color: var(--text-color);
  font-size: 1rem; margin-bottom: 1rem;
}

input:focus, textarea:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(44,127,178,0.10); transform: translateY(-2px);
}

input:hover, textarea:hover {
  border-color: var(--accent-color); box-shadow: 0 2px 8px var(--shadow-color);
}

footer {
  background-color: var(--dark-color); color: var(--light-color);
  padding: 2rem 0 1rem;
}

footer .container > div:first-child {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem 0; flex-wrap: wrap;
}

footer nav ul { display: flex; list-style: none; gap: 2rem; flex-wrap: wrap; }

footer a { color: var(--light-color); text-decoration: none; transition: color 0.3s ease; }
footer a:hover { color: var(--highlight-color); }

footer img[alt="logo"] { filter: brightness(0) invert(1); }

#contact .contact-grid-wrap { max-width: 1200px; margin: 0 auto; }
@media (min-width: 768px) { #contact .contact-grid-wrap { width: 80%; } }
@media (max-width: 767px) { #contact .contact-grid-wrap { width: 100%; } }

.contact-info p { margin-bottom: 1rem; line-height: 1.8; }

.image-text-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}

.image-text-section img { width: 100%; border-radius: 12px; box-shadow: 0 6px 20px var(--shadow-color); }

/* Random block v6 — горизонтальный dos/don'ts с иконками в 2 колонки без таблицы */
.tips-banner {
  width: 100%;
  padding: 4rem 0;
  background: linear-gradient(135deg, #0D1F2D 0%, #1A3D54 100%);
  color: white;
}

.tips-banner h2 {
  text-align: center; font-size: 2rem;
  margin-bottom: 0.75rem; color: white;
}

.tips-banner > .container > p {
  text-align: center; opacity: 0.8;
  margin-bottom: 3rem; font-size: 1.05rem;
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.tip-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(255,255,255,0.07);
  border-radius: 12px; padding: 1.25rem 1.5rem;
  border: 1px solid rgba(74,171,184,0.20);
  transition: background 0.3s;
}

.tip-item:hover { background: rgba(255,255,255,0.12); }

.tip-icon {
  font-size: 1.8rem; flex-shrink: 0; line-height: 1;
  margin-top: 0.1rem;
}

.tip-text strong {
  display: block; font-size: 0.9rem;
  margin-bottom: 0.25rem; color: var(--highlight-color);
  text-transform: uppercase; letter-spacing: 0.4px;
}

.tip-text span { font-size: 0.92rem; opacity: 0.88; line-height: 1.5; }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navigation { display: none; }
  .mobile-nav { display: block; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.05rem; }
  .features-grid { grid-template-columns: 1fr; }
  .image-text-section { grid-template-columns: 1fr; }
  footer .container > div:first-child { flex-direction: column; text-align: center; gap: 2rem; }
  footer nav ul { flex-direction: column; gap: 1rem; align-items: center; }
  .tips-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .container { padding: 0 1rem; }
}