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

:root {
  --bg-terracotta: #7a3b2e;
  --bg-brown: #3d2317;
  --bg-brown-light: #4a2c1f;
  --text-white: #ffffff;
  --accent-yellow: #e8c547;
  --accent-yellow-dark: #c9a832;
  --gradient-border: linear-gradient(135deg, #e8c547, #f5d76e, #c9a832, #e8c547);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 12px 40px rgba(0, 0, 0, 0.45);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Noto Sans', sans-serif;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

a:hover {
  color: #f5d76e;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
}

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

.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent-yellow);
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
  opacity: 0.95;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.5em;
  line-height: 0.8;
  padding-right: 12px;
  padding-top: 6px;
  color: var(--accent-yellow);
  font-weight: 700;
}

/* Header */
.header {
  background: var(--bg-brown);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 20px;
}

.header-logo img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--accent-yellow);
}

.header-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.header-nav a {
  color: var(--text-white);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-size: 0.85rem;
}

.header-contacts p,
.header-contacts a {
  margin: 0;
  white-space: nowrap;
}

.header-contacts a {
  color: var(--accent-yellow);
}

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

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent-yellow);
  border-radius: 2px;
  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-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-brown);
  z-index: 999;
  padding: 30px;
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.mobile-menu nav a {
  color: var(--text-white);
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 10px 0;
  border-bottom: 1px solid rgba(232, 197, 71, 0.2);
}

.mobile-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.mobile-contacts p,
.mobile-contacts a {
  margin: 0;
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

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

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61, 35, 23, 0.4), rgba(61, 35, 23, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text-white);
  text-align: center;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
  padding: 0 20px;
}

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

.strength-card {
  flex: 0 1 260px;
  background: var(--bg-brown-light);
  border-radius: 16px;
  padding: 30px 24px;
  position: relative;
  box-shadow: var(--shadow-strong);
  transition: transform 0.3s ease;
}

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

.strength-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: var(--bg-brown-light);
  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:hover {
  transform: translateY(-8px) !important;
}

.strength-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--accent-yellow);
}

.strength-card h3 {
  font-size: 1.4rem;
  color: var(--accent-yellow);
  text-align: center;
  margin-bottom: 12px;
}

.strength-card p {
  font-size: 0.92rem;
  text-align: center;
  line-height: 1.6;
}

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

.service-card {
  background: var(--bg-brown);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--accent-yellow);
  transform: translateY(-5px);
}

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

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

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.5rem;
  color: var(--accent-yellow);
  margin-bottom: 12px;
}

.service-card-body p {
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent-yellow);
  color: var(--bg-brown);
  font-weight: 600;
  border: 2px solid var(--accent-yellow);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-align: center;
}

.btn:hover {
  background: transparent;
  color: var(--accent-yellow);
}

.btn-outline {
  background: transparent;
  color: var(--accent-yellow);
}

.btn-outline:hover {
  background: var(--accent-yellow);
  color: var(--bg-brown);
}

/* Advantages block */
.advantages-block {
  background: var(--bg-brown);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent-yellow);
}

.advantages-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-brown-light);
  border-radius: 12px;
  border: 1px solid rgba(232, 197, 71, 0.3);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-yellow);
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Forms */
.form-section {
  background: var(--bg-brown);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--accent-yellow);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(232, 197, 71, 0.4);
  border-radius: 8px;
  background: var(--bg-brown-light);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-yellow);
}

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

.form-message {
  padding: 16px 20px;
  border-radius: 8px;
  margin-top: 20px;
  display: none;
  font-weight: 500;
}

.form-message.success {
  display: block;
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid #4caf50;
  color: #a5d6a7;
}

.form-message.error {
  display: block;
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #f44336;
  color: #ef9a9a;
}

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

.faq-item {
  background: var(--bg-brown);
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(232, 197, 71, 0.2);
  overflow: hidden;
}

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-yellow);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* About page */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.about-content.reverse {
  direction: rtl;
}

.about-content.reverse > * {
  direction: ltr;
}

.about-img {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--accent-yellow);
  box-shadow: var(--shadow);
}

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

.mission-sticks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 40px 0;
}

.mission-stick {
  flex: 1 1 220px;
  max-width: 280px;
  background: var(--bg-brown);
  padding: 30px 24px;
  border-radius: 12px;
  text-align: center;
  border-top: 4px solid var(--accent-yellow);
  box-shadow: var(--shadow);
}

.mission-stick h3 {
  color: var(--accent-yellow);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

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

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

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 8px;
  width: 16px;
  height: 16px;
  background: var(--accent-yellow);
  border-radius: 50%;
  border: 3px solid var(--bg-terracotta);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-yellow);
  margin-bottom: 8px;
}

/* Services detail */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.guarantee-item {
  background: var(--bg-brown-light);
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid var(--accent-yellow);
}

.guarantee-item h4 {
  color: var(--accent-yellow);
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  counter-reset: advantage;
}

.advantage-item {
  background: var(--bg-brown);
  padding: 24px;
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.advantage-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-yellow);
  min-width: 40px;
}

/* Bonus program */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.bonus-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-brown-light);
  border-radius: 16px;
  border: 2px solid rgba(232, 197, 71, 0.3);
}

.bonus-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.bonus-item h4 {
  color: var(--accent-yellow);
  margin-bottom: 8px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-block {
  background: var(--bg-brown);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.contact-info-block h3 {
  color: var(--accent-yellow);
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.contact-item {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-item strong {
  color: var(--accent-yellow);
  min-width: 80px;
}

/* Footer */
.footer {
  background: var(--bg-brown);
  padding: 60px 0 30px;
  margin-top: 40px;
  border-top: 3px solid var(--accent-yellow);
}

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

.footer-logo img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--accent-yellow);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  justify-content: center;
}

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

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

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

.footer-contacts p,
.footer-contacts a {
  margin-bottom: 8px;
  display: block;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}

.footer-bottom {
  border-top: 1px solid rgba(232, 197, 71, 0.2);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--accent-yellow);
}

/* Legal pages */
.legal-content {
  background: var(--bg-brown);
  border-radius: 16px;
  padding: 50px 40px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.legal-content h2 {
  color: var(--accent-yellow);
  font-size: 1.6rem;
  margin: 30px 0 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.text-block {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.text-block p {
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-nav,
  .header-contacts {
    display: none;
  }

  .burger {
    display: flex;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-content.reverse {
    direction: ltr;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-social {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .banner {
    height: 280px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-section,
  .advantages-block,
  .legal-content {
    padding: 30px 20px;
  }

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

  .footer-legal {
    justify-content: center;
  }
}

@media (min-width: 1025px) {
  .strengths-grid {
    flex-wrap: nowrap;
  }
}
