/* ===== Variables — светлая тема ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f7f5;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-muted: #5c5c5c;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1280px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.logo span {
  color: var(--accent);
}

.nav a {
  margin-left: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Section ===== */
.section {
  padding: 72px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

.section-intro {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ===== Domain grid ===== */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.domain-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.domain-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.domain-card .tld {
  color: var(--accent);
}

.domain-card .meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.domain-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.domain-card .btn:hover {
  background: var(--accent);
  color: white;
}

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== Gallery (мерч) — разный размер, masonry-стиль ===== */
.gallery--masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
  grid-auto-flow: dense;
}

.gallery--masonry .gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  min-height: 0;
}

.gallery--masonry .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery--masonry .gallery-item:hover img {
  transform: scale(1.06);
}

/* Размеры: обычный 1×1 */
.gallery-item--normal {
  grid-column: span 1;
  grid-row: span 1;
}

/* Широкий 2×1 */
.gallery-item--wide {
  grid-column: span 2;
  grid-row: span 1;
}

/* Высокий 1×2 */
.gallery-item--tall {
  grid-column: span 1;
  grid-row: span 2;
}

/* Большой 2×2 */
.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}

/* ===== CTA ===== */
.cta-block {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
}

.cta-block .section-title {
  margin-bottom: 12px;
}

.cta-block .section-desc {
  margin-bottom: 24px;
}

.cta-email {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}

.cta-block .cta-link,
.cta-block .btn-primary {
  margin-top: 8px;
}

/* Кнопка контактов: синий фон, белый текст */
.cta-block .btn-primary,
.cta-block .cta-link {
  display: inline-flex;
  background: var(--accent);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  border: none;
  transition: background 0.2s;
}

.cta-block .btn-primary:hover,
.cta-block .cta-link:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg-soft);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .gallery--masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero {
    padding: 100px 24px 56px;
  }

  .section {
    padding: 48px 0;
  }

  .domain-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .domain-card {
    padding: 20px;
  }

  .domain-card .name {
    font-size: 1.2rem;
  }

  .gallery--masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
    gap: 12px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item--large {
    grid-column: span 2;
    grid-row: span 2;
  }
}
