@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Mulish:wght@300;400;500;600;700&display=swap');

:root {
  --navy:       #0d1f3c;
  --navy-mid:   #16304f;
  --navy-light: #1e4068;
  --gold:       #c9a84c;
  --gold-light: #e2c882;
  --cream:      #f7f4ee;
  --cream-dark: #ede9df;
  --white:      #ffffff;
  --text:       #1a2535;
  --muted:      #5a6a7e;
  --line:       #ddd9d0;
  --danger:     #b83232;
  --success:    #1d7a4f;
  --shadow-sm: 0 2px 8px rgba(13,31,60,0.08);
  --shadow-md: 0 8px 32px rgba(13,31,60,0.13);
  --shadow-lg: 0 20px 60px rgba(13,31,60,0.18);
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Mulish', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(20px, 5vw, 80px);
  height: 72px;
  background: var(--navy);
  border-bottom: 1px solid rgba(201,168,76,0.25);
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; letter-spacing: 0.02em;
}

.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--gold); color: var(--navy);
  font-size: 14px; font-weight: 700; border-radius: 2px;
}

.nav { display: flex; align-items: center; gap: 2px; }

.nav a, .logout-button {
  padding: 8px 14px;
  color: rgba(255,255,255,0.75);
  border: 0; border-radius: var(--radius);
  background: transparent;
  font: 500 13px/1 'Mulish', sans-serif;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover, .logout-button:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.nav .cta-nav { margin-left: 8px; padding: 8px 18px; background: var(--gold); color: var(--navy); font-weight: 700; border-radius: var(--radius); }
.nav .cta-nav:hover { background: var(--gold-light); }

.header-phone {
  padding: 9px 14px;
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: var(--radius);
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.header-phone:hover { background: rgba(201,168,76,0.1); color: var(--white); }

.menu-button {
  display: none; width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius);
  background: transparent; color: var(--white); font-size: 20px; cursor: pointer;
}

.hidden { display: none !important; }

/* HERO */
.hero {
  position: relative; min-height: 680px;
  display: grid; align-items: center; overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute; inset: 0;
  background: url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  opacity: 0.18;
}

.hero-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 80px);
}

.hero-content {
  position: relative; max-width: 780px;
  padding: 80px clamp(20px, 5vw, 80px);
  color: var(--white);
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px; color: var(--gold);
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }

.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(38px, 6vw, 72px); font-weight: 700; line-height: 1.08; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 560px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-badge {
  position: absolute; bottom: 48px; right: clamp(20px, 5vw, 80px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  animation: fadeUp 0.9s 0.2s ease both;
}

.stat-pill {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(201,168,76,0.2);
  border-radius: 40px; backdrop-filter: blur(10px);
}

.stat-num { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; }
.stat-label { color: rgba(255,255,255,0.6); font-size: 12px; font-weight: 500; }

/* BUTTONS */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: none; border-radius: var(--radius);
  font: 600 14px/1 'Mulish', sans-serif; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}

.button.primary { background: var(--gold); color: var(--navy); }
.button.primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,0.35); }
.button.secondary { background: transparent; border: 1px solid rgba(255,255,255,0.35); color: var(--white); }
.button.secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }
.button.outline { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.button.outline:hover { background: var(--navy); color: var(--white); }
.button.danger { background: var(--danger); color: var(--white); }

/* LAYOUT */
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.page { min-height: calc(100vh - 144px); padding: 60px 0; }
.section { padding: 80px 0; }

/* SECTION */
.section-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 14px;
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 46px); font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.section .lead { color: var(--muted); font-size: 16px; max-width: 640px; margin-bottom: 48px; }

/* FEATURE GRID */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature-card { padding: 36px 30px; background: var(--white); transition: background 0.2s; }
.feature-card:hover { background: var(--cream); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--navy); color: var(--gold); border-radius: var(--radius); font-size: 20px; margin-bottom: 20px; }
.feature-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.section-cream { background: var(--cream-dark); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .section-label::after { background: rgba(201,168,76,0.28); }
.section-navy h2 { color: var(--white); }
.section-navy .lead { color: rgba(255,255,255,0.68); }

.steps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 36px; }
.steps-grid article { position: relative; padding: 28px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.steps-grid span { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; background: var(--navy); color: var(--gold); border-radius: 50%; font-weight: 800; }
.steps-grid h3, .advantage-grid h3, .team-grid h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 8px; }
.steps-grid p, .advantage-grid p, .team-grid p { color: var(--muted); font-size: 14px; }

.advantage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.advantage-grid article { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.advantage-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; background: var(--gold); color: var(--navy); border-radius: var(--radius); font-weight: 800; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.reviews-grid article { padding: 28px; background: rgba(255,255,255,0.06); border: 1px solid rgba(201,168,76,0.22); border-radius: var(--radius-lg); }
.reviews-grid p { color: rgba(255,255,255,0.78); margin-bottom: 20px; }
.reviews-grid strong { display: block; color: var(--gold-light); }
.reviews-grid span { color: rgba(255,255,255,0.55); font-size: 13px; }

.faq-wrap { display: grid; grid-template-columns: 0.75fr 1fr; gap: 48px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.faq-list summary { padding: 20px 22px; color: var(--navy); font-weight: 800; cursor: pointer; }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); }

.contact-band { padding: 64px 0; background: var(--cream-dark); border-top: 1px solid var(--line); }
.contact-band-grid { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.contact-band h2 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.contact-band p { color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 48px; align-items: start; }
.about-grid p { color: var(--muted); font-size: 17px; line-height: 1.8; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-stats article { padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; }
.about-stats strong { display: block; color: var(--navy); font-family: 'Playfair Display', serif; font-size: 44px; line-height: 1; }
.about-stats span { color: var(--muted); }

.team-grid, .license-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.team-grid article { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.person-avatar { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; background: var(--navy); color: var(--gold); border-radius: 50%; font-weight: 800; }
.license-grid article { padding: 26px; background: rgba(255,255,255,0.06); border: 1px solid rgba(201,168,76,0.22); border-radius: var(--radius-lg); color: rgba(255,255,255,0.76); }

.contacts-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: 32px; align-items: start; }
.contact-card { padding: 34px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.contact-card h2, .contacts-layout h2 { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 18px; }
.contact-card p { margin-bottom: 12px; color: var(--muted); }
.map-placeholder { display: grid; place-items: center; min-height: 260px; margin-top: 24px; padding: 28px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); border-radius: var(--radius-lg); color: var(--white); text-align: center; }
.map-placeholder span { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 34px; }
.map-placeholder p { color: rgba(255,255,255,0.72); margin: 8px 0 0; }
.map-frame {
  width: 100%;
  min-height: 500px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.map-frame ymaps,
.map-frame iframe {
  width: 100% !important;
}

/* SERVICES GRID */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  display: flex; flex-direction: column;
  padding: 30px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.service-num { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.service-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 10px; line-height: 1.3; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.65; flex: 1; }
.price { margin: 20px 0 18px; font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--navy); }

/* BAND */
.band { background: var(--navy); padding: 64px clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.band .eyebrow { color: var(--gold); }
.band h2 { font-family: 'Playfair Display', serif; font-size: clamp(24px, 3.5vw, 38px); color: var(--white); margin: 10px 0 12px; }
.band p { color: rgba(255,255,255,0.65); max-width: 560px; }

/* FORMS */
.form-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0; }
.form-info h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 44px); line-height: 1.2; margin-bottom: 14px; }
.form-info p { color: var(--muted); line-height: 1.7; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); display: grid; gap: 18px; }

label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }

input, select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--cream); color: var(--text);
  font: 400 14px/1.5 'Mulish', sans-serif;
  transition: border-color 0.2s, background 0.2s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: var(--white); }
input:disabled { color: var(--muted); background: var(--cream-dark); }

.message { min-height: 20px; font-size: 13px; font-weight: 600; color: var(--success); }
.message.error { color: var(--danger); }

/* AUTH */
.auth-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 40px 20px; background: var(--cream); }
.auth-card { width: min(460px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 40px; box-shadow: var(--shadow-lg); display: grid; gap: 18px; }
.auth-card h1 { font-family: 'Playfair Display', serif; font-size: 30px; margin-bottom: 4px; }
.auth-card .subtitle { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.small-text { color: var(--muted); font-size: 13px; text-align: center; }
.small-text a { color: var(--navy); font-weight: 700; }

/* REQUEST LIST */
.request-list { display: grid; gap: 14px; }
.request-card { padding: 24px 28px; background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow 0.2s, border-left-color 0.2s; }
.request-card:hover { box-shadow: var(--shadow-md); border-left-color: var(--gold); }
.request-card-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.request-card h3 { font-family: 'Playfair Display', serif; font-size: 17px; margin-bottom: 6px; }
.request-meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 0; color: var(--muted); font-size: 13px; }

/* STATUS */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-new { background: #fef9ec; color: #9a6e00; }
.status-in_progress { background: #edf4ff; color: #1557a0; }
.status-done { background: #edf7f2; color: #1a7048; }

/* ADMIN */
.admin-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-panel-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid var(--line); background: var(--cream); }
.admin-panel-header h2 { font-family: 'Playfair Display', serif; font-size: 20px; }
.admin-form { display: grid; grid-template-columns: 200px 1fr auto; gap: 12px; align-items: end; padding: 20px 28px; border-bottom: 1px solid var(--line); background: var(--cream); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; background: var(--cream); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream); }

/* PAGE HEADER */
.page-header { padding: 48px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.page-header h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-header p { color: var(--muted); }

/* EMPTY */
.empty { padding: 48px 28px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); font-size: 14px; }

/* FOOTER */
.site-footer { background: var(--navy); padding: 46px clamp(20px, 5vw, 80px) 24px; color: rgba(255,255,255,0.62); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; width: min(1180px, 100%); margin: 0 auto; }
.footer-grid h4 { color: var(--white); font-family: 'Playfair Display', serif; font-size: 17px; margin-bottom: 12px; }
.footer-grid a, .footer-grid p { display: block; margin-bottom: 8px; color: rgba(255,255,255,0.62); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { color: var(--gold) !important; font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 700; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1180px, 100%); margin: 28px auto 0; padding-top: 18px; border-top: 1px solid rgba(201,168,76,0.22); color: rgba(255,255,255,0.42); }

/* RESPONSIVE */
@media (max-width: 960px) {
  .menu-button { display: grid; place-items: center; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px; background: var(--navy); border-bottom: 1px solid rgba(201,168,76,0.2); z-index: 99; }
  .nav.open { display: flex; }
  .nav a, .logout-button { text-align: left; padding: 12px 16px; }
  .header-phone { margin-left: auto; }
  .feature-grid, .services-grid, .steps-grid, .advantage-grid, .reviews-grid, .about-stats, .team-grid, .license-grid, .contacts-layout, .footer-grid { grid-template-columns: 1fr; }
  .faq-wrap, .about-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; gap: 32px; }
  .admin-form { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
  .hero-badge { display: none; }
  .footer-bottom, .contact-band-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero-content { padding: 60px 20px; }
  .section { padding: 56px 0; }
  .page { padding: 40px 0; }
  .form-card, .auth-card { padding: 28px 22px; }
  .request-card { padding: 18px 20px; }
}
