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

:root {
  --bg-terracotta: #8b4532;
  --bg-brown: #3e2723;
  --bg-brown-light: #4a3228;
  --text-white: #ffffff;
  --accent-orange: #ff8c32;
  --accent-orange-dark: #e67300;
  --gradient-border: linear-gradient(135deg, #ff8c32, #ffb366, #ff8c32, #e67300);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-hover: 0 12px 40px rgba(255, 140, 50, 0.25);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', sans-serif;
  --header-height: 80px;
  --transition: 0.3s ease;
}

*,
*::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-orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #ffb366;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

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

section {
  padding: 4rem 0;
}

section.page-banner {
  padding: 0;
}

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

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

/* Drop cap */
.drop-cap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 3.5em;
  line-height: 0.85;
  padding-right: 0.1em;
  color: var(--accent-orange);
  font-weight: 700;
}

/* Header */
.site-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: 1rem;
}

.logo-link {
  flex-shrink: 0;
}

.logo-link img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  white-space: nowrap;
}

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

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

.header-contacts {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-contacts p,
.header-contacts a {
  font-size: 0.875rem;
  white-space: nowrap;
}

.header-contacts p {
  color: var(--text-white);
  margin: 0;
}

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

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

.burger-btn span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent-orange);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

.burger-btn.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);
  padding: 2rem;
  z-index: 999;
  overflow-y: auto;
}

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

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  border-bottom: 1px solid var(--bg-brown-light);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--text-white);
  font-size: 1.1rem;
}

.mobile-contacts {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--accent-orange);
}

.mobile-contacts p,
.mobile-contacts a {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.mobile-contacts p {
  color: var(--text-white);
}

/* Banner */
.page-banner {
  position: relative;
  width: 100%;
  height: clamp(280px, 40vw, 500px);
  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(62, 39, 35, 0.55), rgba(139, 69, 50, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-banner h1 {
  text-align: center;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  padding: 0 1rem;
}

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

.strength-card {
  flex: 1 1 200px;
  max-width: 260px;
  background: var(--bg-brown);
  padding: 1.75rem 1.5rem;
  border-radius: 12px;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.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;
  box-shadow: var(--shadow-hover);
}

.strength-card h3 {
  color: var(--text-white);
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.strength-card p {
  font-size: 0.92rem;
  opacity: 0.95;
}

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

.service-card {
  background: var(--bg-brown);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}

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

.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;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.service-card-body p {
  flex: 1;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent-orange);
  color: var(--bg-brown) !important;
  border: 2px solid var(--accent-orange);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  font-family: var(--font-body);
}

.btn:hover {
  background: transparent;
  color: var(--accent-orange) !important;
}

.btn-outline {
  background: transparent;
  color: var(--accent-orange) !important;
}

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

/* Advantages / stats */
.advantages-block {
  background: var(--bg-brown);
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
}

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

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border: 2px solid var(--accent-orange);
  border-radius: 10px;
}

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

.stat-label {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.advantages-text {
  margin-top: 2rem;
}

.advantages-text p {
  margin-bottom: 1rem;
}

/* Forms */
.form-section {
  background: var(--bg-brown);
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
}

.form-section h2 {
  text-align: center;
}

.booking-form,
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--accent-orange);
  border-radius: 6px;
  background: var(--bg-brown-light);
  color: var(--text-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: #ffb366;
  box-shadow: 0 0 0 3px rgba(255, 140, 50, 0.2);
}

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

.form-message {
  padding: 1rem;
  border-radius: 6px;
  margin-top: 1rem;
  display: none;
  text-align: center;
  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: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-brown);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  border-left: 4px solid var(--accent-orange);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  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-orange);
  transition: transform var(--transition);
}

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

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

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
}

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

/* About page */
.about-intro {
  max-width: 900px;
  margin: 0 auto;
}

.about-intro h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

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

.about-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid var(--accent-orange);
  box-shadow: var(--shadow);
}

.about-photo--primary img {
  min-height: 360px;
}

.about-photo--secondary {
  transform: translateY(2.5rem);
}

.about-photo--secondary img {
  min-height: 420px;
}

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

.mission-stick {
  flex: 1 1 180px;
  background: var(--bg-brown);
  padding: 1.5rem;
  border-radius: 8px;
  border-top: 4px solid var(--accent-orange);
  box-shadow: var(--shadow);
}

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

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

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

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background: var(--accent-orange);
  border-radius: 50%;
  border: 3px solid var(--bg-terracotta);
  transform: translateX(-5px);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-orange);
  font-weight: 700;
}

/* Services detail page */
.service-detail-card {
  background: var(--bg-brown);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
}

.service-detail-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-detail-body {
  padding: 2rem;
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--accent-orange);
  margin: 1rem 0;
}

.service-guarantee {
  background: var(--bg-brown-light);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  border-left: 3px solid var(--accent-orange);
  font-size: 0.9rem;
}

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

.benefits-list li {
  background: var(--bg-brown);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--accent-orange);
}

.benefits-list li strong {
  color: var(--accent-orange);
  display: block;
  margin-bottom: 0.35rem;
}

.bonus-program {
  background: var(--bg-brown);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
}

.bonus-icons {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

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

.bonus-icon-item svg {
  width: 48px;
  height: 48px;
  fill: var(--accent-orange);
  margin-bottom: 0.75rem;
}

.order-steps {
  counter-reset: step;
  list-style: none;
  max-width: 700px;
  margin: 2rem auto;
}

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

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

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

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

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

.contact-info-block p {
  margin-bottom: 1rem;
}

.contact-info-block a {
  word-break: break-all;
}

.map-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--accent-orange);
  border-radius: 6px;
}

/* Footer */
.site-footer {
  background: var(--bg-brown);
  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-radius: 6px;
}

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

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

.footer-contacts p,
.footer-contacts a {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contacts p {
  color: var(--text-white);
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid var(--bg-brown-light);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.footer-legal a {
  font-size: 0.85rem;
}

/* Legal pages */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--accent-orange);
}

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

.content-block {
  background: var(--bg-brown);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.content-block p {
  margin-bottom: 1rem;
}

/* Intro text blocks */
.intro-text {
  max-width: 900px;
  margin: 0 auto 2rem;
  text-align: justify;
}

.intro-text p {
  margin-bottom: 1rem;
}

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

  .burger-btn {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
  }

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

  .strengths-grid {
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .about-photo--secondary {
    transform: none;
  }

  .about-photo--primary img,
  .about-photo--secondary img {
    min-height: 280px;
  }

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

  .footer-logo {
    justify-self: center;
  }

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

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

  section {
    padding: 2.5rem 0;
  }
}

@media (min-width: 1024px) {
  .about-gallery {
    gap: 2.5rem;
    margin-top: 3.5rem;
  }

  .about-photo--primary img {
    min-height: 480px;
  }

  .about-photo--secondary img {
    min-height: 520px;
  }

  .strengths-grid {
    flex-wrap: nowrap;
  }
}
