/* ============================================================
   AV дизайн — дизайн интерьеров, Калининград
   Палитра: тёмный зелёный логотипа ↔ кремовый, акцент латунь
   ============================================================ */

:root {
  --green: #1F3D2C;
  --green-dark: #152B1F;
  --green-soft: #2C523C;
  --cream: #F5F2EC;
  --cream-light: #FCFAF6;
  --brass: #B08D57;
  --brass-dark: #93713F;
  --ink: #26302A;
  --muted: #6E7A70;
  --line: #E4DED2;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Onest", "Segoe UI", Arial, sans-serif;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(21, 43, 31, 0.10);
  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream-light);
  overflow-x: clip;
}

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

section[id], #top { scroll-margin-top: 84px; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Типографика ---------- */

h1, h2, h3 { font-weight: 600; line-height: 1.15; }

.section__kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 14px;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  color: var(--green);
}

.section__head { margin-bottom: 40px; }

.section__note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}

.section { padding: 88px 0; }

.section--dark { background: var(--green); }
.section--dark .section__title,
.section--dark h2, .section--dark h3 { color: var(--cream); }

.section--cream { background: var(--cream); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--accent { background: var(--brass); color: #fff; }
.btn--accent:hover { background: var(--brass-dark); }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245, 242, 236, 0.45);
}
.btn--ghost:hover { border-color: var(--cream); }

.btn--light { background: var(--cream); color: var(--green); }
.btn--light:hover { background: #fff; }

.btn--ghost-dark {
  background: transparent;
  color: var(--green);
  border-color: rgba(31, 61, 44, 0.35);
}
.btn--ghost-dark:hover { border-color: var(--green); }

.btn--wide { width: 100%; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 250, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--green);
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
}

.logo__text small {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--brass-dark); }

.header__phone {
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
}

.header__phone:hover { color: var(--brass-dark); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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 {
  position: relative;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  overflow: hidden;
}

.hero::after {
  /* мягкое латунное свечение на фоне */
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.28) 0%, transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero__tagline {
  font-size: 13px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 64px);
  color: var(--cream);
  margin-bottom: 22px;
}

.hero__title em {
  font-style: italic;
  color: var(--brass);
}

.hero__lead {
  max-width: 480px;
  font-size: 17px;
  color: rgba(245, 242, 236, 0.78);
  margin-bottom: 34px;
}

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

.hero__content { min-width: 0; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  list-style: none;
  border-top: 1px solid rgba(245, 242, 236, 0.16);
  padding-top: 28px;
}

.hero__facts li { display: flex; flex-direction: column; }

.hero__facts strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 6px;
}

.hero__facts span {
  font-size: 13px;
  color: rgba(245, 242, 236, 0.62);
}

.hero__photo {
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  /* заглушка, пока не подгружено главное фото */
  background:
    linear-gradient(155deg, rgba(176, 141, 87, 0.35), transparent 55%),
    repeating-linear-gradient(135deg, rgba(245, 242, 236, 0.05) 0 2px, transparent 2px 18px),
    linear-gradient(200deg, var(--green-soft), var(--green-dark));
}

.hero__photo--img { background: none; }

.hero__photo--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ---------- Секции услуг ---------- */

.cards-grid {
  display: grid;
  gap: 24px;
}

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

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__num {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--brass);
}

.service-card h3 {
  font-size: 19px;
  color: var(--green);
  margin: 12px 0 10px;
}

.service-card p { font-size: 14.5px; color: var(--muted); }

.service-card__sub {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.service-card__list {
  list-style: none;
  margin: 4px 0 6px;
}

.service-card__list li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 14.5px;
  color: #3D463F;
  border-bottom: 1px solid var(--line);
}

.service-card__list li:last-child { border-bottom: none; }

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 14px;
  height: 14px;
  background: var(--brass);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

.service-card__price {
  margin-top: 16px !important;
  font-weight: 600;
  font-size: 17px !important;
  color: var(--green) !important;
}

.extras {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px dashed var(--brass);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.extras__title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--green);
  flex-shrink: 0;
}

.extras__items {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.extras__item {
  font-size: 14.5px;
  color: var(--muted);
  max-width: 340px;
}

.extras__item strong {
  display: block;
  font-size: 17px;
  color: var(--green);
  margin-top: 3px;
}

.terms-note {
  margin-top: 20px;
  padding: 20px 26px;
  background: rgba(31, 61, 44, 0.05);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: #3D463F;
}

.terms-note strong { color: var(--green); }

/* ---------- Карточка проекта и карусель ---------- */

.project-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.projects-preview .project-card__body { padding: 24px 26px 28px; }

.project-card h3 {
  font-size: 21px;
  color: var(--green);
  margin-bottom: 6px;
}

.project-card__meta {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-bottom: 12px;
}

.project-card__body p:last-child {
  font-size: 14.5px;
  color: var(--muted);
}

.carousel {
  position: relative;
  overflow: hidden;
  background: var(--green-dark);
}

.carousel__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
}

.carousel__track img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  user-select: none;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(252, 250, 246, 0.85);
  color: var(--green);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.carousel:hover .carousel__arrow,
.carousel:focus-within .carousel__arrow,
.carousel.is-touch .carousel__arrow { opacity: 1; }

.carousel__arrow:hover { background: #fff; }

.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel__dots button {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(252, 250, 246, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__dots button.is-active {
  background: var(--brass);
  transform: scale(1.25);
}

/* Страница проектов: широкие горизонтальные карточки */

.page-head {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 72px 0 64px;
}

.page-head__title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--cream);
  margin-bottom: 14px;
}

.page-head__lead {
  max-width: 560px;
  color: rgba(245, 242, 236, 0.75);
}

.section__kicker--light { color: var(--brass); }

.projects-page { padding-top: 72px; }

.project-card--row {
  flex-direction: row;
  margin-bottom: 40px;
}

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

.project-card--row .carousel {
  flex: 0 0 52%;
  align-self: stretch;
}

.project-card--row .carousel__track,
.project-card--row .carousel__track img { height: 100%; }

.project-card--row .carousel__track img {
  aspect-ratio: auto;
  object-fit: cover;
}

.project-card--row .project-card__body {
  flex: 1;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card__title {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--green);
  margin-bottom: 8px;
}

.project-card--reverse { flex-direction: row-reverse; }

.projects-preview__more {
  text-align: center;
  margin-top: 44px;
}

/* ---------- Обо мне ---------- */

.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* заглушка под портрет дизайнера */
  background:
    radial-gradient(circle at 50% 34%, rgba(176, 141, 87, 0.4) 0%, transparent 34%),
    repeating-linear-gradient(135deg, rgba(31, 61, 44, 0.06) 0 2px, transparent 2px 16px),
    linear-gradient(190deg, var(--cream), #E7E1D4);
}

.about__text p {
  margin-bottom: 16px;
  color: #3D463F;
}

.about__list {
  list-style: none;
  margin-top: 22px;
}

.about__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 15px;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brass);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') center / contain no-repeat;
}

/* ---------- Этапы ---------- */

.steps__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  color: var(--brass-dark);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  color: var(--green);
  margin-bottom: 8px;
}

.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Отзывы ---------- */

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card blockquote {
  position: relative;
  font-size: 15px;
  color: #3D463F;
  padding-top: 26px;
}

.review-card blockquote::before {
  content: "\201C";
  position: absolute;
  top: -12px;
  left: -4px;
  font-family: var(--serif);
  font-size: 74px;
  line-height: 1;
  color: var(--brass);
  opacity: 0.5;
}

.review-card figcaption {
  margin-top: auto;
  font-weight: 600;
  font-size: 15px;
  color: var(--green);
}

.review-card figcaption span {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

.reviews__more {
  text-align: center;
  margin-top: 44px;
}

/* ---------- Контакты ---------- */

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

.contacts__info > p {
  color: rgba(245, 242, 236, 0.75);
  max-width: 420px;
  margin-bottom: 30px;
}

.contacts__list {
  list-style: none;
}

.contacts__list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(245, 242, 236, 0.14);
  font-size: 15px;
  color: var(--cream);
}

.contacts__list li span {
  color: rgba(245, 242, 236, 0.55);
  flex-shrink: 0;
}

.contacts__list a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(176, 141, 87, 0.6);
  transition: color 0.2s ease;
}

.contacts__list a:hover { color: var(--brass); }

.contact-form {
  background: var(--cream-light);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.contact-form h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--green);
  margin-bottom: 22px;
}

.contact-form label {
  display: block;
  margin-bottom: 16px;
}

.contact-form label span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

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

.contact-form__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.contact-form__status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(31, 61, 44, 0.08);
  color: var(--green);
  font-size: 14px;
  text-align: center;
}

/* ---------- Призыв на странице проектов ---------- */

.cta {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  text-align: center;
}

.cta__inner h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--cream);
  margin-bottom: 12px;
}

.cta__inner p {
  color: rgba(245, 242, 236, 0.72);
  margin-bottom: 28px;
}

/* ---------- Подвал ---------- */

.footer {
  background: var(--green-dark);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}

.logo--footer { color: var(--cream); }

.logo--footer .logo__mark { background: rgba(245, 242, 236, 0.12); }

.logo--footer .logo__text small { color: rgba(245, 242, 236, 0.5); }

.footer__nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  flex-wrap: wrap;
}

.footer__nav a {
  color: rgba(245, 242, 236, 0.72);
  text-decoration: none;
  font-size: 14px;
}

.footer__nav a:hover { color: var(--brass); }

.footer__copy {
  width: 100%;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(245, 242, 236, 0.45);
}

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps__list { grid-template-columns: repeat(3, 1fr); }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 72px;
  }
  .hero__photo {
    max-width: 480px;
    aspect-ratio: 16 / 10;
    width: 100%;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__photo { max-width: 420px; }

  .contacts__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(21, 43, 31, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav a {
    color: var(--cream);
    font-family: var(--serif);
    font-size: 26px;
  }

  body.nav-open { overflow: hidden; }

  .burger { display: flex; margin-left: auto; position: relative; z-index: 65; }
  .burger.is-open span { background: var(--cream); }

  .header__phone { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 60px 0; }

  .cards-grid--4,
  .cards-grid--3,
  .cards-grid--2 { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }

  .hero__facts { gap: 18px 32px; }
  .hero__actions .btn { padding: 14px 26px; }

  .project-card--row,
  .project-card--reverse { flex-direction: column; }

  .project-card--row .carousel { flex-basis: auto; }
  .project-card--row .carousel__track img { aspect-ratio: 4 / 3; }

  .project-card--row .project-card__body { padding: 24px 22px 28px; }

  .contact-form { padding: 28px 22px; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__nav { margin-left: 0; }
}

@media (hover: none) and (pointer: coarse) {
  .carousel.is-touch .carousel__arrow { opacity: 1; width: 36px; height: 36px; }
}
