/* =============================================
   STYLES — Художник-портретист Юра
   Стиль наполеоновских войн / английская гвардия
   ============================================= */

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

:root {
  --crimson: #8B0000;
  --crimson-light: #B22222;
  --gold: #D4A843;
  --gold-light: #E8C96A;
  --navy: #1B2838;
  --navy-dark: #0F1923;
  --cream: #F5ECD7;
  --cream-dark: #E8D9B8;
  --parchment: #FDF8EE;
  --green-guard: #1A472A;
  --green-light: #2D6A4F;
  --white: #FFFFFF;
  --text-dark: #2C1810;
  --text-muted: #6B5B4F;
}

body {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  color: var(--text-dark);
  background: var(--parchment);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(
    135deg,
    var(--navy-dark) 0%,
    var(--navy) 30%,
    var(--crimson) 70%,
    var(--crimson-light) 100%
  );
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.03) 2px,
      rgba(0,0,0,0.03) 4px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-emblem {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: emblemPulse 3s ease-in-out infinite;
}

@keyframes emblemPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 168, 67, 0.3); }
  50% { box-shadow: 0 0 40px rgba(212, 168, 67, 0.6); }
}

.emblem-cross {
  font-size: 2.5rem;
  color: var(--gold);
}

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--cream);
  margin-bottom: 1rem;
}

.hero-title-line {
  display: block;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title-accent {
  display: block;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--cream-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.divider-star {
  color: var(--gold);
  font-size: 1rem;
}

.divider-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--cream-dark);
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.4);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.scroll-arrow {
  font-size: 2rem;
  color: var(--gold);
}

/* ========== SOLDIERS SECTION ========== */
.soldiers-section {
  background: var(--navy-dark);
  padding: 4rem 0;
}

.soldiers-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

#soldiersCanvas {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.soldiers-overlay-text {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--cream);
  z-index: 2;
}

.soldiers-overlay-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  color: var(--gold);
}

.soldiers-overlay-text p {
  font-size: 1.2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  color: var(--cream-dark);
}

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--navy);
  margin: 1rem 0;
}

.header-ornament {
  color: var(--gold);
  font-size: 1.5rem;
}

/* ========== ABOUT SECTION ========== */
.about {
  padding: 5rem 0;
  background: var(--parchment);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-text {
  font-size: 1.1rem;
}

.about-intro {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--crimson);
}

.about-text strong {
  color: var(--crimson);
  font-weight: 700;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cream-dark);
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--crimson);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.portrait-frame {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 3/4;
  border: 8px solid var(--gold);
  background: linear-gradient(135deg, var(--navy) 0%, var(--crimson) 100%);
  box-shadow: 
    0 0 0 4px var(--navy),
    0 20px 60px rgba(0,0,0,0.3);
}

.frame-ornament {
  position: absolute;
  font-size: 2rem;
  color: var(--gold);
}

.frame-ornament.top-left { top: 10px; left: 15px; }
.frame-ornament.top-right { top: 10px; right: 15px; transform: scaleX(-1); }
.frame-ornament.bottom-left { bottom: 10px; left: 15px; transform: scaleY(-1); }
.frame-ornament.bottom-right { bottom: 10px; right: 15px; transform: scale(-1); }

.portrait-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.placeholder-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

/* ========== SERVICES SECTION ========== */
.services {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--parchment) 100%);
}

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

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--cream-dark);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

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

/* ========== GIFT BANNER ========== */
.gift-banner {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-light) 100%);
  color: var(--cream);
  text-align: center;
}

.gift-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.gift-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.gift-content > p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 3rem;
}

.gift-prices {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.price-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2rem 2.5rem;
  min-width: 200px;
  position: relative;
}

.price-card.featured {
  background: var(--gold);
  color: var(--navy-dark);
  transform: scale(1.05);
  border: none;
}

.price-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy-dark);
  color: var(--gold);
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.price-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.price-value {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.price-desc {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== GALLERY ========== */
.gallery {
  padding: 5rem 0;
  background: var(--parchment);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.gallery-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

/* ========== TESTIMONIALS ========== */
.testimonials {
  padding: 5rem 0;
  background: var(--cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-left: 4px solid var(--gold);
  position: relative;
}

.quote-mark {
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  opacity: 0.3;
}

.testimonial-card p {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.testimonial-author {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--crimson);
}

/* ========== CONTACT ========== */
.contact {
  padding: 5rem 0;
  background: var(--parchment);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 2rem;
  color: var(--crimson);
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 600;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--cream-dark);
}

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

.form-group label {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--cream-dark);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  transition: border-color 0.3s ease;
  background: var(--parchment);
}

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

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--crimson);
  color: var(--cream);
  border: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: var(--navy-dark);
}

.btn-ornament {
  color: var(--gold);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--navy-dark);
  color: var(--cream);
  padding: 3rem 0;
  text-align: center;
}

.footer-emblem {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

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

.footer-tagline {
  font-style: italic;
  opacity: 0.7;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

.service-card,
.testimonial-card,
.gallery-item {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
