/* === VARIABLES === */
:root {
  --navy: #0B1D3A;
  --navy-deep: #061229;
  --beige: #F5F0E8;
  --beige-light: #FAF7F2;
  --white: #FFFFFF;
  --gold: #C9A84C;
  --gold-light: #D4BA6A;
  --gold-dark: #A8892E;
  --text-dark: #1A1A2E;
  --text-light: #E8E4DC;
  --text-muted: #8A8A9A;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-width: 1200px;
  --section-py: clamp(60px, 8vw, 120px);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--beige-light);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/* === CONTAINER === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-deep);
  padding: 16px 40px;
  border-radius: 2px;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.5);
  transform: translateY(-2px);
}
.btn--sm { padding: 12px 28px; font-size: 0.85rem; }
.btn--lg { padding: 18px 50px; font-size: 1rem; }

/* === SECTIONS === */
.section {
  padding: var(--section-py) 0;
}
.section--light { background: var(--beige-light); }
.section--dark { background: var(--navy); }
.section--accent { background: var(--navy-deep); }
.section--final {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
  text-align: center;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: 50px;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}
.section__title--light { color: var(--text-light); }

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: -30px auto 50px;
  line-height: 1.8;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero__logo-mark {
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}
.hero__desc {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
  opacity: 0.9;
}
.hero__portrait {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__portrait-img {
  max-height: 600px;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  object-fit: cover;
}

/* === AUDIENCE === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.audience-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 4px;
  border: 1px solid rgba(201,168,76,0.15);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}
.audience-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.audience-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(201,168,76,0.12);
  transform: translateY(-4px);
}
.audience-card__icon {
  color: var(--gold);
  margin-bottom: 20px;
}
.audience-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dark);
}

/* === RESULTS === */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.result-item {
  padding: 40px 32px;
  border-left: 2px solid var(--gold);
  opacity: 0;
  transform: translateX(-20px);
}
.result-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.result-item__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.result-item h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* === SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: 4px;
  border: 1px solid rgba(201,168,76,0.12);
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(201,168,76,0.1);
}
.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}
.service-card__price {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold-dark);
  margin-bottom: 16px;
  font-weight: 600;
}
.service-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}
.service-card__note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 20px;
}
.service-card--books .service-card__book-img {
  width: 100%;
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.service-card--books .service-card__book-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  padding: 36px 24px;
  text-align: center;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.project-card__icon {
  color: var(--gold);
  margin-bottom: 16px;
}
.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-light);
  font-weight: 400;
}

/* === WHY === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}
.why-item {
  padding: 28px 0;
  opacity: 0;
  transform: translateY(20px);
}
.why-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.why-item__line {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 16px;
}
.why-item p {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

/* === GIFT === */
.gift-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.gift-block__visual {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.gift-block__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gift-block__content {
  text-align: left;
}
.gift-block__content .section__title {
  text-align: left;
}
.gift-block__text {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
  opacity: 0.9;
}

/* === FORM === */
.form {
  max-width: 700px;
  margin: 0 auto;
}
.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form__group { display: flex; flex-direction: column; }
.form__group--full { margin-bottom: 20px; max-width: 700px; margin-left: auto; margin-right: auto; }
.form__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form__input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 2px;
  background: var(--white);
  color: var(--text-dark);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
}
.form__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form__input::placeholder { color: #B0B0B0; }
.form__textarea { resize: vertical; min-height: 80px; }
.form__select { cursor: pointer; }
.form__info {
  text-align: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.form__info p { margin-bottom: 4px; }
.form .btn { display: block; width: 100%; max-width: 400px; margin: 0 auto; }
.form__input.error { border-color: #e74c3c; }

.form-success {
  text-align: center;
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
}
.form-success__icon { margin-bottom: 24px; }
.form-success h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.form-success p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* === CONTACTS === */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.contact-item__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-item__value {
  font-size: 1rem;
  color: var(--text-light);
}
.contact-item__value:hover { color: var(--gold); }

/* === FINAL === */
.final-content {
  padding: 40px 0;
}
.final-content__text {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--text-light);
  margin-bottom: 40px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* === FOOTER === */
.footer {
  background: var(--navy-deep);
  padding: 24px 0;
  border-top: 1px solid rgba(201,168,76,0.1);
}
.footer__inner {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* === ANIMATIONS === */
[data-animate] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero {
    min-height: auto;
    padding: 60px 0;
  }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__logo-mark { margin: 0 auto 24px; }
  .hero__portrait { order: -1; }
  .hero__portrait-img { max-height: 400px; }

  .audience-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }

  .gift-block {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .gift-block__content { text-align: center; }
  .gift-block__content .section__title { text-align: center; }

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

@media (max-width: 480px) {
  .hero__title { font-size: 2.4rem; }
  .hero__portrait-img { max-height: 320px; }
  .projects-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .audience-card { padding: 28px 24px; }
  .service-card { padding: 28px 22px; }
}
