:root {
  --bg: #F9F5F0;
  --bg-card: #FFFDF9;
  --bg-cream-dark: #F0E7DF;
  --text: #2E2A26;
  --text-muted: #7A6E65;
  --accent: #A65D48;
  --accent-light: #C0745C;
  --accent-hover: #8A4B38;
  --border: #E7DCD2;
  --white: #FFFFFF;
  --shadow: rgba(166, 93, 72, 0.10);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, p {
  overflow-wrap: break-word;
}

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo__role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--accent);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--accent);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

/* Hero */
.hero {
  padding: 80px 0 120px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero__content {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease forwards;
}

.hero__subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--text);
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__cta {
  display: inline-flex;
}

.hero__image-wrapper {
  position: relative;
  opacity: 0;
  transform: translateX(24px);
  animation: fadeInRight 1s ease 0.2s forwards;
}

.hero__image {
  position: relative;
  z-index: 2;
  border-radius: 240px 240px 20px 20px;
  object-fit: cover;
  object-position: center top;
  width: 100%;
  height: 560px;
  box-shadow: 0 24px 60px var(--shadow);
}

.hero__image-bg {
  position: absolute;
  top: 32px;
  left: -32px;
  right: 32px;
  bottom: -32px;
  background: var(--bg-cream-dark);
  border-radius: 240px 240px 20px 20px;
  z-index: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(58, 79, 65, 0.2);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(58, 79, 65, 0.28);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section__header {
  margin-bottom: 56px;
}

.section__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.credential {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.credential:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.credential--small {
  grid-column: 1 / -1;
}

.credential__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.credential__place {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.credential__year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Issues */
.issues {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.issues__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.issue {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  transition: transform var(--transition);
}

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

.issue__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 16px;
  line-height: 1;
}

.issue__text {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.6;
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px var(--shadow);
}

.service:hover::before {
  transform: scaleY(1);
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.service__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Approach */
.approach {
  background: var(--accent);
  color: var(--white);
}

.approach .section__label {
  color: rgba(255, 255, 255, 0.65);
}

.approach .section__title {
  color: var(--white);
}

.approach__content {
  max-width: 800px;
}

.approach__lead {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.approach__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.tag {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  transition: all var(--transition);
}

.tag:hover {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}

/* Contact */
.contact {
  padding: 120px 0;
}

.contact__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 64px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 20px 60px var(--shadow);
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  margin-bottom: 20px;
}

.contact__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.contact__cta {
  margin-bottom: 0;
}

/* Consultation modal (Yandex Form) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal.open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(46, 42, 38, 0.55);
  backdrop-filter: blur(4px);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 64px rgba(46, 42, 38, 0.32);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--transition);
}
.modal.open .modal__dialog {
  transform: translateY(0) scale(1);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}
.modal__close:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.modal__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 8px;
  padding-right: 40px;
}
.modal__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.modal__form {
  width: 100%;
}
.modal__form iframe {
  width: 100%;
  height: 560px;
  border: none;
  border-radius: 12px;
  display: block;
}

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

  .modal__dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 24px 16px 16px;
    display: flex;
    flex-direction: column;
  }

  .modal__form {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 12px;
  }

  .modal__form iframe {
    height: 100%;
    min-height: 0;
    border-radius: 8px;
  }
}

@media (max-width: 640px) {
  .modal {
    padding: 0;
  }

  .modal__dialog {
    padding: 24px 16px 16px;
  }

  .modal__title {
    font-size: 1.4rem;
  }

  .modal__subtitle {
    font-size: 0.9rem;
  }
}

/* Footer */
.footer {
  background: var(--bg-cream-dark);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.footer__disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  .hero__image {
    height: 360px;
    border-radius: 160px 160px 16px 16px;
  }

  .hero__image-bg {
    border-radius: 160px 160px 16px 16px;
  }

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

  .issues__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .header__inner {
    height: 72px;
  }

  .nav-toggle {
    display: flex;
    z-index: 110;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -110%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 92px 24px 24px;
    gap: 18px;
    box-shadow: -8px 0 40px var(--shadow);
    transition: right var(--transition);
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav__link {
    font-size: 1.15rem;
    width: 100%;
    padding: 10px 0;
  }

  .hero {
    padding: 24px 0 32px;
  }

  .hero__inner {
    gap: 18px;
  }

  /* Mobile hero = compact circular avatar above the text */
  .hero__image-wrapper {
    order: -1;
    width: min(160px, 48vw);
    max-width: 180px;
    aspect-ratio: 1;
    margin: 0 auto 12px;
    display: block;
  }

  .hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }

  .hero__image-bg {
    border-radius: 50%;
    top: 8px;
    left: -8px;
    right: 8px;
    bottom: -8px;
  }

  .hero__subtitle {
    font-size: 0.72rem;
    margin-bottom: 12px;
    letter-spacing: 0.08em;
    word-wrap: break-word;
    hyphens: auto;
  }

  .hero__title {
    font-size: clamp(1.55rem, 6.5vw, 1.9rem);
    line-height: 1.12;
    margin-bottom: 16px;
    word-wrap: break-word;
    hyphens: auto;
  }

  .hero__lead {
    font-size: 0.98rem;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .hero__cta {
    padding: 13px 18px;
    font-size: 0.88rem;
  }

  .hero__cta {
    padding: 14px 22px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 320px;
  }

  .section {
    padding: 36px 0;
  }

  .section__header {
    margin-bottom: 24px;
  }

  .section__title {
    font-size: clamp(1.55rem, 6.5vw, 1.95rem);
  }

  .about__text p,
  .service__text,
  .issue__text,
  .approach__lead,
  .contact__text {
    font-size: 1rem;
    line-height: 1.55;
  }

  .credential__title,
  .service__title {
    font-size: 1.25rem;
  }

  .about__credentials,
  .issues__list,
  .services__grid {
    grid-template-columns: 1fr;
  }

  .credential--small {
    grid-column: auto;
  }

  .service {
    padding: 24px;
  }

  .service__title {
    font-size: 1.35rem;
  }

  .approach__lead {
    font-size: 1.05rem;
  }

  .contact {
    padding: 48px 0;
  }

  .contact__card {
    padding: 28px 16px;
    border-radius: 24px;
  }

  .contact__title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  }

  .contact__text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .contact__cta {
    width: 100%;
    max-width: 320px;
  }

  .modal {
    padding: 0;
  }

  .modal__dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 20px 14px 14px;
    display: flex;
    flex-direction: column;
  }

  .modal__title {
    font-size: 1.35rem;
    margin-bottom: 6px;
    padding-right: 48px;
  }

  .modal__subtitle {
    font-size: 0.88rem;
    margin-bottom: 12px;
  }

  .modal__form {
    flex: 1 1 auto;
    min-height: 0;
    margin-top: 8px;
  }

  .modal__form iframe {
    height: 100%;
    min-height: 0;
    border-radius: 8px;
  }

  .modal__close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__lead {
    font-size: 0.95rem;
  }

  .issue__num {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
