@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;0,700;1,600&family=Source+Sans+3:wght@300;400;600&display=swap');

:root {
  --terracotta: #6b2e2a;
  --terracotta-dark: #4a1f1c;
  --terracotta-light: #8b3d38;
  --gold: #d4af37;
  --gold-light: #e8c96a;
  --gold-dark: #b8941f;
  --black: #0d0d0d;
  --black-soft: #1a1a1a;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.85);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --gradient-border: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark), var(--gold-light));
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--terracotta);
  color: var(--white);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--gold-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-dark {
  background-color: var(--black);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-border);
  margin: 1rem auto 0;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.8rem;
  line-height: 0.85;
  padding-right: 0.12em;
  padding-top: 0.05em;
  color: var(--gold);
  font-weight: 700;
}

/* Header */
.site-header {
  background: var(--terracotta-dark);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  max-width: 1400px;
  margin: 0 auto;
}

.header-logo img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--gold);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.header-nav ul {
  display: flex;
  list-style: none;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.header-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--gold);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.header-contact p,
.header-contact a,
.header-contact span {
  white-space: nowrap;
  margin: 0;
  color: var(--white);
  flex-shrink: 0;
}

.header-contact a:hover {
  color: var(--gold);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--gold);
  transition: 0.3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.mobile-contact {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.mobile-contact p,
.mobile-contact a {
  color: var(--white);
  white-space: nowrap;
}

/* Banner */
.page-banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 45vw, 520px);
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(74, 31, 28, 0.55), rgba(74, 31, 28, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.page-banner h1 {
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.02em;
}

/* Strengths - staggered horizontal cards */
.strengths-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 2rem 0;
}

.strength-card {
  position: relative;
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--black-soft);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow), 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.strength-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  background: var(--gradient-border);
  z-index: -1;
}

.strength-card:nth-child(1) { transform: translateY(-20px); }
.strength-card:nth-child(2) { transform: translateY(10px); }
.strength-card:nth-child(3) { transform: translateY(-35px); }
.strength-card:nth-child(4) { transform: translateY(5px); }
.strength-card:nth-child(5) { transform: translateY(-15px); }

.strength-card:hover {
  transform: translateY(-8px) !important;
}

.strength-card h3 {
  color: #ffffff;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.strength-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--black-soft);
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 2px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.service-card-body p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.price-tag small {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.25s ease;
  text-align: center;
}

.btn:hover {
  background: var(--gold);
  color: var(--terracotta-dark);
}

.btn-filled {
  background: var(--gold);
  color: var(--terracotta-dark);
}

.btn-filled:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* Achievements */
.achievements-block {
  background: var(--black);
  padding: 3rem;
  border-radius: 12px;
  border: 2px solid var(--gold);
}

.achievements-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.achievements-text p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Forms */
.form-section {
  background: var(--black-soft);
  padding: 3rem;
  border-radius: 12px;
  border: 2px solid var(--gold);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--terracotta-dark);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 4px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  display: none;
  font-weight: 600;
}

.form-message.success {
  display: block;
  background: rgba(46, 125, 50, 0.3);
  border: 1px solid #4caf50;
  color: #a5d6a7;
}

.form-message.error {
  display: block;
  background: rgba(198, 40, 40, 0.3);
  border: 1px solid #ef5350;
  color: #ef9a9a;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--black-soft);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 800px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
}

/* About page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.about-images img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--gold);
}

.mission-sticks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.mission-stick {
  flex: 1 1 200px;
  background: var(--black);
  padding: 1.5rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.mission-stick h3 {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 3rem auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-5.5px);
  box-shadow: 0 0 0 4px var(--terracotta);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* Services detail */
.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  background: var(--black-soft);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2.5rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.service-detail-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--gold);
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.guarantee-item {
  background: var(--black);
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 3px solid var(--gold);
}

.guarantee-item h4 {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.advantages-list li {
  background: var(--black-soft);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  position: relative;
  padding-left: 2.5rem;
}

.advantages-list li::before {
  content: '✦';
  position: absolute;
  left: 1rem;
  color: var(--gold);
}

/* Bonus program */
.bonus-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.bonus-icon-item {
  text-align: center;
  flex: 1 1 140px;
  max-width: 180px;
}

.bonus-icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 2rem;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-block {
  background: var(--black);
  padding: 2.5rem;
  border-radius: 12px;
  border: 2px solid var(--gold);
}

.contact-info-block h3 {
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  margin-bottom: 1.25rem;
}

.contact-info-item strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  background: var(--terracotta-dark);
  border-top: 3px solid var(--gold);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.footer-logo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid var(--gold);
  border-radius: 4px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-nav a {
  color: var(--white);
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-contact {
  text-align: right;
  font-size: 0.9rem;
}

.footer-contact p,
.footer-contact a {
  color: var(--white);
  margin-bottom: 0.4rem;
  display: block;
}

.footer-legal {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-legal-links a {
  color: var(--text-muted);
}

.footer-legal-links a:hover {
  color: var(--gold);
}

.footer-company {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Legal pages */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.legal-content h1 {
  margin-bottom: 2rem;
  color: var(--gold);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--gold-light);
}

.legal-content p {
  margin-bottom: 1rem;
  text-align: justify;
}

.legal-content ul {
  margin: 1rem 0 1rem 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

/* Text blocks */
.text-block {
  margin-bottom: 2rem;
}

.text-block p {
  margin-bottom: 1rem;
  text-align: justify;
}

.order-steps {
  counter-reset: step;
  list-style: none;
  margin: 2rem 0;
}

.order-steps li {
  counter-increment: step;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 1rem;
  background: var(--black-soft);
  border-radius: 8px;
  position: relative;
}

.order-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--terracotta-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .burger {
    display: flex;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--terracotta-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
  }

  .header-nav.open {
    right: 0;
  }

  .header-nav ul {
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
  }

  .header-contact {
    display: none;
  }

  .mobile-contact {
    display: flex;
  }

  .strength-card:nth-child(n) {
    transform: none;
  }

  .strengths-grid {
    flex-direction: column;
    align-items: center;
  }

  .about-content,
  .service-detail-card,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-nav ul {
    justify-content: center;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }
}

@media (max-width: 600px) {
  .form-section {
    padding: 1.5rem;
  }

  .achievements-block {
    padding: 1.5rem;
  }
}
