/* BASE */

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* LAYOUT */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

section {
  margin-bottom: 60px;
}

/* TYPOGRAPHY */

h1, h2, h3 {
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

ul {
  padding-left: 18px;
}

li {
  margin-bottom: 8px;
  color: var(--muted);
}

/* HERO */

.hero {
  padding: 80px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 36px;
  max-width: 700px;
  margin: 0 auto 20px;
}

.hero p {
  font-size: 18px;
}

.hero {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background: url('../img/hero.webp') center/cover no-repeat;

  filter: grayscale(100%) contrast(1.1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* GRID */

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* CARDS */

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  filter: grayscale(40%) brightness(0.9);
  opacity: 0.8;
}

/* ADV GRID (5 колонок) */

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PROCESS */

.process-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  text-align: center;
}

.icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.arrow {
  font-size: 24px;
  color: #94a3b8;
}

/* MOBILE */

@media (max-width: 800px) {
  .process-grid {
    flex-direction: column;
  }

  .arrow {
    transform: rotate(90deg);
  }
}

/* CTA */

.cta {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.cta-card {
  display: block;
  background: var(--card);
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  transition: 0.2s ease;
}

.cta-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.cta-card h3 {
  margin-bottom: 10px;
}

.cta-card p {
  font-weight: bold;
  color: var(--accent);
}

.cta-card span {
  font-size: 14px;
  color: var(--muted);
}

/* MOBILE */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 26px;
  }
}

.grid-prices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-prices {
    grid-template-columns: repeat(1, 1fr);
  }
}

.price-card {
  position: relative;
  overflow: hidden;
  height: 280px;
  border-radius: 12px;
  cursor: pointer;
}

.price-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transition: transform 0.4s ease;
}

.price-card:hover img {
  transform: scale(1.05);
}

/* overlay */

.price-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 20%,
    rgba(0, 0, 0, 0.3) 60%,
    transparent
  );

  display: flex;
  align-items: flex-end;
}

.price-text {
  padding: 15px;
  color: #fff;
}

.price-text h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.price-text p {
  margin-bottom: 5px;
  font-size: 14px;
  opacity: 0.85;
}

.price-text span {
  font-size: 18px;
  font-weight: bold;
}
