/* ============ RESET & БАЗА ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #3A322C;
  background: #FAF7F2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

:root {
  --cream: #FAF7F2;
  --sand: #E8DFD3;
  --blue-soft: #A8C0CE;
  --blue-deep: #6E8FA0;
  --caramel: #B89B7A;
  --brown-dark: #5C4A3A;
  --ink: #3A322C;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px rgba(92, 74, 58, 0.08);
  --shadow-hover: 0 16px 40px rgba(92, 74, 58, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ============ АНИМАЦИЯ ПОЯВЛЕНИЯ ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--caramel);
  color: #fff;
  box-shadow: 0 6px 18px rgba(184, 155, 122, 0.35);
}
.btn--primary:hover {
  background: #a8896a;
  box-shadow: 0 10px 24px rgba(184, 155, 122, 0.45);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(58, 50, 44, 0.25);
}
.btn--ghost:hover {
  border-color: var(--caramel);
  color: var(--caramel);
  transform: translateY(-2px);
}

.btn--sm { padding: 10px 22px; font-size: 14px; }

/* ============ ХЕДЕР ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
              padding 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.header.is-scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(92, 74, 58, 0.06);
  padding: 10px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.logo__icon { width: 26px; height: 26px; color: var(--caramel); }

.nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  font-size: 15px;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--caramel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { opacity: 1; color: var(--caramel); }
.nav__link:hover::after { transform: scaleX(1); }

.header__cta { margin-left: 8px; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 140px 0 90px;
  overflow: hidden;
  background: linear-gradient(160deg, #FAF7F2 0%, #F2EFEA 45%, #E6EDF1 100%);
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}
.blob--1 {
  width: 480px; height: 480px;
  background: #A8C0CE;
  top: -120px; left: -120px;
  animation: drift1 22s ease-in-out infinite;
}
.blob--2 {
  width: 380px; height: 380px;
  background: #D9C4A9;
  bottom: -100px; right: -80px;
  animation: drift2 26s ease-in-out infinite;
}
.blob--3 {
  width: 300px; height: 300px;
  background: #B8D1DC;
  top: 40%; right: 30%;
  opacity: 0.35;
  animation: drift1 30s ease-in-out infinite reverse;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -40px) scale(1.05); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--brown-dark);
  max-width: 640px;
}

.hero__lead {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #5c5148;
  margin: 0 0 26px;
  max-width: 620px;
}

.hero__concerns {
  margin-bottom: 18px;
}
.hero__concerns-title {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel);
  margin: 0 0 12px;
  font-weight: 600;
}

.concerns {
  columns: 2;
  column-gap: 28px;
  font-size: 14px;
  line-height: 1.45;
  color: #4a4139;
}
.concerns li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  break-inside: avoid;
}
.concerns li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  background: var(--caramel);
  border-radius: 50%;
}

.hero__format {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(232, 223, 211, 0.7);
  border-radius: 999px;
  font-size: 14px;
  color: var(--brown-dark);
  margin: 0 0 26px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Портрет */
.hero__portrait { display: flex; justify-content: center; }

.portrait {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  box-shadow: 0 30px 60px rgba(92, 74, 58, 0.18);
  animation: morph 9s ease-in-out infinite;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes morph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
  50%      { border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; }
}

/* ============ СЕКЦИИ — общий заголовок ============ */
.section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(30px, 3.5vw, 42px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--ink);
  text-align: center;
}

/* ============ ОБО МНЕ ============ */
.about {
  padding: 100px 0;
  background: var(--cream);
}

.about__lead {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--brown-dark);
  margin: 0 0 56px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.about__subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 22px;
}
.about__subtitle--center {
  text-align: center;
  margin-top: 20px;
}

.edu { display: flex; flex-direction: column; gap: 18px; }
.edu li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a4139;
}
.edu__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--caramel);
  transition: transform 0.4s var(--ease);
}
.edu__icon svg {
  width: 22px;
  height: 22px;
}
.edu li:hover .edu__icon {
  transform: scale(1.1) rotate(-4deg);
}

.assoc { display: flex; flex-direction: column; gap: 16px; }
.assoc__card {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--sand);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.55;
  color: #4a4139;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.assoc__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.assoc__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--caramel);
  transition: transform 0.4s var(--ease);
}
.assoc__icon svg {
  width: 24px;
  height: 24px;
}
.assoc__card:hover .assoc__icon {
  transform: scale(1.1) rotate(-4deg);
}
.assoc__card p { margin: 0; }

/* Дипломы */
.diplomas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.diploma {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--sand);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.diploma img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.diploma:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.diploma:hover img { transform: scale(1.05); }

/* ============ ОКЕАН ============ */
.ocean {
  position: relative;
  height: 55vh;
  min-height: 380px;
  overflow: hidden;
  margin: 0;
}
.ocean__image {
  position: absolute;
  inset: -60px 0;
  will-change: transform;
}
.ocean__image img {
  width: 100%;
  height: calc(100% + 120px);
  object-fit: cover;
}
.ocean::before,
.ocean::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  z-index: 1;
  pointer-events: none;
}
.ocean::before {
  top: 0;
  background: linear-gradient(to bottom, var(--cream), transparent);
}
.ocean::after {
  bottom: 0;
  background: linear-gradient(to top, var(--cream), transparent);
}

/* ============ УСЛУГИ ============ */
.services {
  padding: 100px 0;
  background: var(--cream);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-card {
  padding: 36px 28px;
  background: var(--sand);
  border: 1px solid rgba(184, 155, 122, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: 18px;
  color: var(--caramel);
  transition: transform 0.4s var(--ease);
}
.service-card__icon svg { width: 40px; height: 40px; }
.service-card:hover .service-card__icon { transform: rotate(-6deg) scale(1.08); }

.service-card__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--caramel);
  margin: 0 0 8px;
  font-weight: 600;
}
.service-card__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink);
  margin: 0;
}

/* ============ ФИНАЛЬНЫЙ CTA ============ */
.cta {
  position: relative;
  padding: 110px 0;
  background: var(--blue-deep);
  color: #fff;
  overflow: hidden;
}
.cta__bg { position: absolute; inset: 0; pointer-events: none; }
.cta__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.cta__glow--1 {
  width: 500px; height: 500px;
  background: #A8C0CE;
  top: -180px; left: -120px;
  animation: drift1 24s ease-in-out infinite;
}
.cta__glow--2 {
  width: 420px; height: 420px;
  background: #B89B7A;
  bottom: -180px; right: -120px;
  animation: drift2 28s ease-in-out infinite;
}

.cta__inner { position: relative; text-align: center; }

.cta__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin: 0 0 16px;
}
.cta__subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0 0 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  backdrop-filter: blur(6px);
}
.contact:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}
.contact--primary {
  background: var(--caramel);
  border-color: var(--caramel);
  animation: pulse 3s ease-in-out infinite;
}
.contact--primary:hover {
  background: #a8896a;
  border-color: #a8896a;
  animation: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}

.contact__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
}
.contact__icon svg { width: 100%; height: 100%; }

.contact__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.contact__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
}
.contact__value { font-weight: 500; }

/* ============ ФУТЕР ============ */
.footer {
  background: #3A322C;
  color: #E8DFD3;
  padding: 40px 0 24px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy { margin: 0; font-size: 14px; opacity: 0.75; }

.footer__nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  opacity: 0.85;
}
.footer__nav a:hover { color: var(--caramel); }

.footer__socials { display: flex; gap: 14px; }
.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(232, 223, 211, 0.1);
  color: #E8DFD3;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.footer__socials a:hover {
  background: var(--caramel);
  color: #fff;
  transform: translateY(-2px);
}
.footer__socials svg { width: 16px; height: 16px; }

.footer__signature {
  text-align: center;
  font-family: 'Caveat', cursive;
  font-size: 20px;
  opacity: 0.8;
  margin: 28px 0 0;
}

/* ============ ССЫЛКА НА ВЕБ-СТУДИЮ В ПОДВАЛЕ ============ */
.footer__studio {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(232, 223, 211, 0.12);
  text-align: center;
}

.footer__studio-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: #E8DFD3;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

.footer__studio-link:hover {
  opacity: 1;
  color: #E8DFD3;
}

.footer__studio-label {
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.footer__studio-name {
  position: relative;
  font-weight: 500;
  color: var(--caramel);
}

/* Тонкое подчёркивание, «растущее» при hover */
.footer__studio-name::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--caramel);
  transform: scaleX(0.35);
  transform-origin: left;
  opacity: 0.6;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.footer__studio-link:hover .footer__studio-name::after {
  transform: scaleX(1);
  opacity: 1;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(58, 50, 44, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }

/* ============ МОБИЛЬНАЯ ВЕРСИЯ ============ */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__portrait { order: -1; }
  .portrait { max-width: 340px; }

  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .services__grid { grid-template-columns: 1fr; }
  .diplomas { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { display: none; }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 24px;
    gap: 18px;
    box-shadow: 0 20px 40px rgba(92, 74, 58, 0.12);
    border-radius: 0 0 var(--radius) var(--radius);
  }

  .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }

  .burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 120px 0 70px; }
  .concerns { columns: 1; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }

  .about, .services, .cta { padding: 72px 0; }
  .ocean { height: 35vh; min-height: 240px; }

  .cta__contacts { flex-direction: column; align-items: stretch; }
  .contact { justify-content: center; }

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