@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --primary: rgb(11, 58, 80);
  --secondary: rgb(15, 136, 184);
  --background: #F9FAFB;
  --text-primary: #271116;
  --text-secondary: #6B7280;
  --accent: #4a02be;
  --white: #ffffff;
  
  --font-main: 'Outfit', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.logo {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  padding: var(--space-xs);
  z-index: 1001;
}

.burger span {
  width: 1.5rem;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.35rem, 0.35rem);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.35rem, -0.35rem);
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

section {
  padding: var(--space-xl) 0;
}

.section-title {
  font-family: var(--font-accent);
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: var(--primary);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-md);
}

.card h3 {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: var(--secondary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 2, 190, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
}

footer {
  background: var(--primary);
  color: var(--white);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-md);
}

.footer-links a {
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  opacity: 0.8;
}

.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: var(--space-md);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: none;
  animation: slideUp 0.3s ease;
}

.cookie-popup.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-content p {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.thank-you-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.thank-you-content h1 {
  font-family: var(--font-accent);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.thank-you-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg);
}

.error-content h1 {
  font-family: var(--font-accent);
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.error-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

@media (max-width: 946px) {
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    padding: var(--space-xl) var(--space-md);
    gap: var(--space-sm);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1111;
  }
  
  nav ul.active {
    right: 0;
  }
  
  .burger {
    display: flex;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Секция 1: Два изображения (gallery-duo) ========== */
.gallery-duo {
  padding: var(--space-xl) 0;
  background: linear-gradient(180deg, var(--background) 0%, #eef1f5 100%);
}

.gallery-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-duo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.gallery-duo-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(11, 58, 80, 0.2);
}

.gallery-duo-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-duo-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-duo-card:hover .gallery-duo-img-wrap img {
  transform: scale(1.08);
}

.gallery-duo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 58, 80, 0.92) 0%, rgba(11, 58, 80, 0.4) 50%, transparent 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 1;
  transition: background 0.4s ease, padding 0.4s ease;
}

.gallery-duo-overlay h3 {
  font-family: var(--font-accent);
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
  color: var(--white);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.gallery-duo-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  max-height: 4em;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.gallery-duo-card:hover .gallery-duo-overlay {
  background: linear-gradient(to top, rgba(11, 58, 80, 0.95) 0%, rgba(15, 136, 184, 0.6) 100%);
  padding: var(--space-md) var(--space-lg);
}

.gallery-duo-card:hover .gallery-duo-overlay h3 {
  transform: translateY(-4px);
}

/* ========== Секция 2: Одно изображение + текст (feature-image) ========== */
.feature-image-section {
  padding: var(--space-xl) 0;
}

.feature-image-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-image-visual {
  position: relative;
}

.feature-image-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-image-section .feature-image-wrapper:hover .feature-image-frame {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 16px 48px rgba(74, 2, 190, 0.15);
}

.feature-image-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-image-section .feature-image-wrapper:hover .feature-image-frame img {
  transform: scale(1.05);
}

.feature-image-content .section-title {
  text-align: left;
}

.feature-image-lead {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-image-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.feature-image-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-image-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.feature-image-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-image-content:hover .feature-image-list li::before {
  transform: scale(1.3);
  background: var(--secondary);
}

.feature-image-content:hover .feature-image-list li {
  padding-left: 2rem;
}

/* ========== Секция 3: Hero-изображение (img4) ========== */
.hero-image-section {
  padding: 0;
  margin: 0;
}

.hero-image-container {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-image-backdrop {
  position: absolute;
  inset: 0;
}

.hero-image-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-section:hover .hero-image-backdrop img {
  transform: scale(1.06);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 58, 80, 0.85) 0%, rgba(11, 58, 80, 0.3) 50%, transparent 100%);
  transition: background 0.4s ease;
}

.hero-image-section:hover .hero-image-overlay {
  background: linear-gradient(to top, rgba(11, 58, 80, 0.9) 0%, rgba(15, 136, 184, 0.25) 50%, transparent 100%);
}

.hero-image-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: var(--space-xl) var(--space-md);
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

.hero-image-caption h2 {
  font-family: var(--font-accent);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-image-section:hover .hero-image-caption h2 {
  transform: translateY(-4px);
}

.hero-image-caption p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin: 0;
  transition: opacity 0.3s ease;
}

.hero-image-section:hover .hero-image-caption p {
  opacity: 1;
}

@media (max-width: 900px) {
  .gallery-duo-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-image-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-image-visual {
    order: 1;
  }

  .feature-image-content {
    order: 2;
  }

  .feature-image-frame {
    transform: none;
  }

  .feature-image-section .feature-image-wrapper:hover .feature-image-frame {
    transform: scale(1.02);
  }
}

@media (max-width: 768px) {
  .gallery-duo-overlay {
    padding: var(--space-md);
  }

  .gallery-duo-overlay h3 {
    font-size: 1.2rem;
  }

  .gallery-duo-overlay p {
    font-size: 0.85rem;
  }

  .hero-image-container {
    min-height: 320px;
  }

  .hero-image-caption h2 {
    font-size: 1.6rem;
  }

  .hero-image-caption {
    padding: var(--space-lg) var(--space-sm);
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  .coll{
    display: flex !important;
    flex-direction: column;
  }
  :root {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .gallery-duo-img-wrap {
    aspect-ratio: 3/2;
  }

  .hero-image-container {
    min-height: 280px;
  }

  .hero-image-caption h2 {
    font-size: 1.4rem;
  }
}
