/* Инга Эпингер — лендинг, мягкая бежевая палитра под фотосессию */

:root {
  --bg-page: #faf7f2;
  --bg-section: #f5efe6;
  --bg-card: #fffcf7;
  --line: #e8dfd2;
  --text: #3a3632;
  --text-muted: #6b645c;
  --accent: #8b7355;
  --accent-soft: #c4a882;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(58, 54, 50, 0.08);
  --radius: 14px;
  --font-serif: "Cormorant Garamond", "Georgia", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #6d5a43;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

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

.nav-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  align-items: center;
}

.nav-desktop a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.25rem 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.nav-mobile a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.nav-mobile.is-open {
  display: flex;
}

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

  .nav-toggle {
    display: block;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(139, 115, 85, 0.35);
}

.btn-primary:hover {
  background: #7a654c;
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
}

.btn-ghost:hover {
  background: var(--bg-section);
  color: #6d5a43;
}

/* Sections */

.section {
  padding: 4rem 1.25rem;
}

.section-alt {
  background: var(--bg-section);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

/* Hero */

.hero {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrap {
    order: -1;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Cards & grids */

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

.card-grid--reviews {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .card-grid--reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .card-grid--reviews {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: 0 4px 20px rgba(58, 54, 50, 0.04);
}

.card p:last-child {
  margin-bottom: 0;
}

#who .card h3 {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Обо мне — текст слева, фото справа */

.about-text {
  min-width: 0;
}

.about-more {
  margin-top: 1.75rem;
}

.about-more-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--text);
}

.about-case-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
}

.about-case-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.55rem;
  line-height: 1.55;
}

.about-case-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-soft);
}

.about-more p:last-child {
  margin-bottom: 0;
}

@media (min-width: 721px) {
  .about-photo.photo-strip--single {
    position: sticky;
    top: 5.5rem;
    margin-left: auto;
    margin-right: 0;
  }
}

/* Lists as «запросы» */

.request-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.request-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
}

.request-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-soft);
}

/* Testimonials */

.quote-card {
  font-style: italic;
  color: var(--text-muted);
}

.quote-author {
  margin-top: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

.quote-review-body {
  position: relative;
}

.quote-review-body.is-clamped:not(.is-expanded) {
  max-height: 13.5rem;
  overflow: hidden;
}

.quote-review-body.is-clamped:not(.is-expanded)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.75rem;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
}

.quote-review-toggle {
  margin-top: 0.65rem;
  padding: 0.35rem 0;
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  font-style: normal;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quote-review-toggle:hover {
  color: #6d5a43;
}

/* Price table */

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.price-table th {
  background: var(--bg-section);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Certificates — группы строк: 3 + 2 + 1 */

.cert-rows {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cert-row {
  display: grid;
  gap: 1.5rem;
}

.cert-row--icf {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cert-row--photos {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cert-row--single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.cert-row--single .cert-item {
  width: 100%;
  max-width: calc((100% - 2 * 1.5rem) / 3);
}

@media (max-width: 900px) {
  .cert-row--icf,
  .cert-row--photos {
    grid-template-columns: 1fr;
  }

  .cert-row--single .cert-item {
    max-width: 100%;
  }
}

.cert-item {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  box-shadow: 0 6px 28px rgba(58, 54, 50, 0.07);
}

.cert-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(52vw, 420px);
  padding: 1rem 1rem 0.75rem;
  background: var(--bg-section);
}

@media (min-width: 901px) {
  .cert-img-wrap {
    min-height: 380px;
    padding: 1.25rem 1.25rem 1rem;
  }
}

.cert-item img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

/* Gallery strip */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0;
}

.photo-strip--single {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.photo-strip img {
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  width: 100%;
}

@media (max-width: 600px) {
  .photo-strip {
    grid-template-columns: 1fr;
  }
}

/* Contact */

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 520px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 0.75rem;
}

.footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

.footer a {
  color: var(--text-muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
