/* =========================================
   vizitka-beget — премиум чёрно-золотой стиль
   ========================================= */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #161616;
  --gold: #D4AF37;
  --gold-bright: #FFD700;
  --gold-soft: rgba(212, 175, 55, 0.15);
  --text: #f5f5f5;
  --text-muted: #b8b8b8;
  --radius: 14px;
  --container: 1180px;
  --gap: 28px;
  --transition: 0.3s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ЗОЛОТАЯ РАМКА (главный элемент дизайна) ===== */
.frame {
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.08) inset,
    0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Угловые акценты для премиального вида */
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-bright);
  pointer-events: none;
}
.frame::before {
  top: -2px; left: -2px;
  border-right: none; border-bottom: none;
  border-top-left-radius: var(--radius);
}
.frame::after {
  bottom: -2px; right: -2px;
  border-left: none; border-top: none;
  border-bottom-right-radius: var(--radius);
}

/* Рамки меньшего размера (без углов) */
.card.frame::before,
.card.frame::after,
.photo-frame::before,
.photo-frame::after,
.text-frame::before,
.text-frame::after,
.contact-card::before,
.contact-card::after,
.hero-frame::before,
.hero-frame::after { display: none; }

.card.frame,
.contact-card,
.photo-frame,
.text-frame,
.hero-frame {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  position: relative;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
}

/* ===== ТИПОГРАФИКА ===== */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title,
.hero-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--text);
}

.hero-title { font-size: clamp(48px, 7vw, 84px); line-height: 1; }
.section-title { font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  margin: 8px 0 0;
}

.hero-offer {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  margin: 18px 0 12px;
}
.accent { color: var(--gold-bright); }

.hero-desc {
  color: var(--text-muted);
  margin: 0 0 28px;
  max-width: 540px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 640px;
  margin: 12px auto 0;
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 18px 0 22px;
}
.gold-divider.center { margin-left: auto; margin-right: auto; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
  color: #0a0a0a;
  border-color: var(--gold-bright);
}
.btn-primary:hover {
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-ghost:hover {
  background: var(--gold-soft);
  color: var(--gold-bright);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-frame { padding: 40px; }

.hero-photo-wrap {
  position: relative;
  width: clamp(200px, 24vw, 280px);
  margin: 0 auto;
}

.photo-frame {
  padding: 8px;
  border-radius: var(--radius);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 6 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--gold-soft);
}

.photo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.photo-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== ОБО МНЕ ===== */
.about {
  padding: 100px 0;
  background: var(--bg-2);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.about-photo-wrap {
  position: relative;
  width: 100%;
  /* В 1.5 раза меньше, чем в landing-converter (440px → 293px) */
  max-width: 293px;
  margin: 0 auto;
}

.about-photo {
  width: 100%;
  aspect-ratio: 6 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.photo-corners {
  position: absolute;
  inset: -8px;
  pointer-events: none;
}
.photo-corners i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gold-bright);
}
.photo-corners i:nth-child(1) { top: 0; left: 0; border-right: none; border-bottom: none; }
.photo-corners i:nth-child(2) { top: 0; right: 0; border-left: none; border-bottom: none; }
.photo-corners i:nth-child(3) { bottom: 0; left: 0; border-right: none; border-top: none; }
.photo-corners i:nth-child(4) { bottom: 0; right: 0; border-left: none; border-top: none; }

.text-frame { padding: 40px; }

.about-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-muted);
}
.check {
  color: var(--gold-bright);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== УСЛУГИ ===== */
.services {
  padding: 100px 0;
  background: var(--bg);
}

.section-head {
  text-align: center;
  margin-bottom: 60px;
}

/* 6-колоночная сетка: первые 3 карточки по 2 колонки (рядом),
   4-я и 5-я — центрированы по одной в средних колонках */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap);
}
.services-grid .card { grid-column: span 2; }
.services-grid .card:nth-child(4) { grid-column: 2 / span 2; }
.services-grid .card:nth-child(5) { grid-column: 4 / span 2; }

.card {
  padding: 32px 28px;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
}

.card-num {
  font-family: "Georgia", serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.card-title {
  font-family: "Georgia", serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.card-text {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
  padding: 100px 0;
  background: var(--bg-2);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-bright);
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  color: var(--text);
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 24px;
  color: var(--gold-bright);
  margin-bottom: 18px;
}

.contact-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contact-value {
  font-family: "Georgia", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.back-top {
  color: var(--gold);
  font-weight: 600;
}
.back-top:hover { color: var(--gold-bright); }

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-photo-wrap { width: 220px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { max-width: 240px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .card,
  .services-grid .card:nth-child(4),
  .services-grid .card:nth-child(5) {
    grid-column: span 1;
  }

  .contacts-grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 60px 0 80px; }
  .about, .services, .contacts { padding: 70px 0; }

  .frame { padding: 24px; }
  .hero-frame, .text-frame { padding: 28px; }

  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; }

  .services-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { width: 200px; }
  .about-photo-wrap { max-width: 200px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 380px) {
  .hero-title { font-size: 44px; }
  .section-title { font-size: 26px; }
}
