/* ===== KQ22 — общие стили ===== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F5F1EC;
  --accent: #4E2B34;
  --text: #2B2623;
  --secondary: #E7DDD2;
  --white: #FFFFFF;
  --text-muted: rgba(43, 38, 35, 0.65);
  --container: 1200px;
  --header-h: 88px;
  --font-display: 'Prata', serif;
  --font-body: 'Tenor Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: pageEnter 0.4s ease;
  padding-top: var(--header-h);
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.portfolio-watermark {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(43, 38, 35, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 8px 18px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: var(--secondary);
  transition: width 0.18s ease-out;
  z-index: 101;
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  height: auto;
  object-fit: contain;
}

.header .logo__img {
  display: block;
  height: 78px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: clamp(14px, 1.8vw, 24px);
  align-items: center;
}

.nav__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}

.header .nav__link {
  color: rgba(255, 255, 255, 0.82);
}

.header .nav__link:hover,
.header .nav__link--active {
  color: var(--secondary);
}

.header .nav__link--active {
  font-weight: 600;
  border-bottom: 1.5px solid var(--secondary);
  padding-bottom: 2px;
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent);
}

.nav__link--active {
  font-weight: 600;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header__call {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(231, 221, 210, 0.35);
  color: var(--secondary);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.header__call:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--secondary);
}

.header__call svg {
  width: 16px;
  height: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.88;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 4px;
}

.header__actions .btn--primary {
  background: var(--secondary);
  color: var(--accent);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 24px;
  border-radius: 4px;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.btn--full {
  width: 100%;
  padding: 16px 24px;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 14px 28px;
  border-radius: 4px;
}

.btn--ghost:hover {
  background: var(--accent);
  color: var(--white);
  opacity: 1;
}

.btn--white {
  background: var(--white);
  color: var(--accent);
  padding: 16px 32px;
  border-radius: 4px;
}

.btn--white:hover {
  opacity: 0.92;
}

.btn--inverse {
  background: var(--white);
  color: var(--accent);
  padding: 16px 24px;
  border-radius: 4px;
  border: 1px solid var(--white);
}

.btn--inverse:hover {
  background: transparent;
  color: var(--white);
  opacity: 1;
}

.btn--card-light {
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--bg);
}

.btn--card-light:hover {
  background: var(--white);
  color: var(--accent);
  opacity: 1;
}

/* ===== BURGER & MOBILE MENU ===== */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.header .burger span {
  background: var(--secondary);
}

.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 28px 24px 36px;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
  overflow-x: hidden;
  overflow-y: auto;
  max-width: 100vw;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu__primary {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(43, 38, 35, 0.1);
}

.mobile-menu__secondary {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(43, 38, 35, 0.06);
}

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(43, 38, 35, 0.08);
}

.mobile-menu__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(78, 43, 52, 0.45);
  margin-bottom: 6px;
}

.mobile-menu__messengers {
  display: flex;
  gap: 16px;
}

.mobile-menu__contact {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  line-height: 1.4;
  transition: color 0.2s;
}

.mobile-menu__contact--muted {
  font-size: 12px;
  color: var(--text-muted);
}

.mobile-menu__contact:hover {
  color: var(--accent);
}

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(43, 38, 35, 0.05);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s ease;
}

.mobile-menu__link:last-child {
  border-bottom: none;
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
  color: var(--accent);
}

.mobile-menu__num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(78, 43, 52, 0.35);
  min-width: 22px;
  flex-shrink: 0;
}

.mobile-menu__link--active .mobile-menu__num {
  color: var(--accent);
}

.mobile-menu__text {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mobile-menu__legal {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(43, 38, 35, 0.5);
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.2s;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  line-height: 1.45;
}

.mobile-menu__legal:hover {
  color: var(--accent);
}

.mobile-menu__cta {
  margin-top: auto;
}

/* Legacy mobile menu links (other pages) */
.mobile-menu .nav__link {
  font-family: var(--font-display);
  font-size: clamp(18px, 4.5vw, 22px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 11px 0;
  line-height: 1.2;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mobile-menu .nav__link:hover,
.mobile-menu .nav__link--active {
  color: var(--accent);
}

.mobile-menu .nav__link--muted {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(43, 38, 35, 0.5);
}

.mobile-menu .nav__link--muted:hover {
  color: var(--accent);
}

/* ===== FORMS ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(43, 38, 35, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.form-input::placeholder {
  color: rgba(43, 38, 35, 0.4);
}

.form-input:focus {
  border-color: var(--accent);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.fade-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== INTERACTIVE CARDS ===== */
.ix-card {
  position: relative;
  isolation: isolate;
}

.ix-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  transition: border-color 0.4s ease;
}

@media (min-width: 1024px) and (pointer: fine) {
  .ix-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
  }

  .ix-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
      420px circle at var(--mouse-x) var(--mouse-y),
      rgba(78, 43, 52, 0.1) 0%,
      transparent 55%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 3;
  }

  .ix-card:hover::before {
    opacity: 1;
  }

  .ix-card:hover::after {
    border-color: rgba(78, 43, 52, 0.22);
  }

  .ix-card--dark::before {
    background: radial-gradient(
      420px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.12) 0%,
      transparent 55%
    );
  }

  .ix-card--dark:hover::after {
    border-color: rgba(255, 255, 255, 0.28);
  }
}

@media (hover: hover) and (pointer: fine) {
  .ix-card:hover .ix-card__img,
  .ix-card:focus-within .ix-card__img {
    transform: scale(1.025);
  }

  .ix-card:hover .ix-card__title,
  .ix-card:focus-within .ix-card__title {
    transform: translateX(4px);
  }

  .ix-card:hover .ix-card__action,
  .ix-card:focus-within .ix-card__action {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (hover: none) {
  .ix-card:active {
    opacity: 0.94;
  }
}

.ix-card__img {
  transition: transform 0.55s ease;
}

.ix-card__title {
  transition: transform 0.35s ease;
}

.ix-card__action {
  transition: opacity 0.35s ease, transform 0.35s ease, gap 0.35s ease;
}

/* ===== SECTION TITLE REVEAL ===== */
.section-head__title,
.svc-section-head__title,
.about-section__title {
  position: relative;
}

.section-head__title::after,
.svc-section-head__title::after,
.about-section__title::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  margin-top: 14px;
  transition: width 0.9s cubic-bezier(0.25, 0.1, 0.25, 1) 0.15s;
}

.section-head.is-revealed .section-head__title,
.svc-section-head.is-revealed .svc-section-head__title,
.about-section-head.is-revealed .about-section__title {
  animation: sectionTitleReveal 1s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.section-head.is-revealed .section-head__title::after,
.svc-section-head.is-revealed .svc-section-head__title::after,
.about-section-head.is-revealed .about-section__title::after {
  width: 48px;
}

@keyframes sectionTitleReveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.6;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-head.is-revealed .section-head__title,
  .svc-section-head.is-revealed .svc-section-head__title,
  .about-section-head.is-revealed .about-section__title {
    animation: none;
    clip-path: none;
    opacity: 1;
  }

  .section-head.is-revealed .section-head__title::after,
  .svc-section-head.is-revealed .svc-section-head__title::after,
  .about-section-head.is-revealed .about-section__title::after {
    width: 48px;
    transition: none;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--accent);
  color: var(--white);
  padding: 72px 0 0;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(200px, 1.1fr) minmax(140px, 0.9fr) minmax(200px, 1fr);
  gap: 56px 48px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 320px;
}

.footer__desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.footer .logo__img {
  width: 190px;
  height: auto;
}

.footer__nav-title {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 20px;
}

.footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.footer__nav-link:hover {
  color: var(--white);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer__call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.footer__call svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer__call:hover {
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.footer__email {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.footer__email:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: flex-end;
}

.footer__cta-btn {
  margin-top: 8px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

.social-link--max span {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 0 28px;
}

.footer__copy {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  letter-spacing: 0.08em;
  margin: 0;
}

.footer__legal {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__legal:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-credit {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 10px 18px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: linear-gradient(
    145deg,
    rgba(231, 221, 210, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  flex: 0 0 auto;
  margin-left: auto;
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.footer-credit__eyebrow {
  display: block;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1;
  margin-bottom: 5px;
}

.footer-credit__title {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
}

.footer-credit__text {
  display: block;
  font-size: 7px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.4;
  max-width: 168px;
}

.footer-credit:hover {
  transform: translateY(-2px);
  background: linear-gradient(
    145deg,
    rgba(231, 221, 210, 0.16) 0%,
    rgba(255, 255, 255, 0.09) 100%
  );
  border-color: rgba(255, 255, 255, 0.36);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-submit-error {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: #8b4545;
  margin-top: 12px;
}

.form-privacy,
.form-disclaimer,
.modal__privacy {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.02em;
  max-width: 100%;
}

.form-privacy a,
.form-disclaimer a,
.modal__privacy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-privacy a:hover,
.form-disclaimer a:hover,
.modal__privacy a:hover {
  opacity: 0.85;
}

.modal__form .modal__privacy {
  margin-top: 10px;
  margin-bottom: 0;
}

.cmodal__form .modal__privacy {
  margin-top: 10px;
  margin-bottom: 0;
}

/* ===== CONTACT FORM MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 35, 0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}

.modal__close:hover {
  color: var(--accent);
}

.modal__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

.modal__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal__form .form-input {
  margin-bottom: 12px;
}

.modal__success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.modal__success.show {
  display: block;
}

.modal__success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(78, 43, 52, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}

.modal__form.hidden {
  display: none;
}

.modal.success > .modal__title,
.modal.success > .modal__desc {
  display: none;
}

/* ===== INFO / DETAIL MODAL (services) ===== */
.info-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 35, 0.5);
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.info-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.info-modal {
  background: var(--white);
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.info-modal-overlay.open .info-modal {
  transform: translateY(0);
}

.info-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-muted);
  line-height: 1;
  z-index: 2;
  transition: color 0.2s;
}

.info-modal__close:hover {
  color: var(--accent);
}

.info-modal__header {
  flex-shrink: 0;
  padding: 32px 36px 16px;
  border-bottom: 1px solid rgba(78, 43, 52, 0.08);
}

.info-modal__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
  padding-right: 28px;
  line-height: 1.15;
}

.info-modal__price {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.info-modal__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 36px;
}

.info-modal__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.info-modal__label,
.info-modal__group-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  margin-top: 8px;
}

.info-modal__group-title:first-child {
  margin-top: 0;
}

.info-modal__list {
  list-style: none;
  margin-bottom: 16px;
}

.info-modal__list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 6px 0 6px 16px;
  position: relative;
  border-bottom: 1px solid rgba(78, 43, 52, 0.06);
}

.info-modal__list li:last-child {
  border-bottom: none;
}

.info-modal__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.info-modal__note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 12px 16px;
  background: var(--bg);
  border-left: 2px solid var(--accent);
  margin-top: 8px;
}

.info-modal__footer {
  flex-shrink: 0;
  padding: 16px 36px 28px;
  border-top: 1px solid rgba(78, 43, 52, 0.08);
}

.info-modal__footer--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 430px) {
  .info-modal__footer--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .info-modal__header,
  .info-modal__body,
  .info-modal__footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .info-modal {
    max-height: 92vh;
  }
}

/* ===== PORTFOLIO CONTACT MODAL (cmodal) ===== */
.cmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 35, 0.5);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.cmodal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cmodal {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.cmodal-overlay.open .cmodal {
  transform: translateY(0);
}

.cmodal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--text-muted);
  line-height: 1;
  transition: color 0.2s;
}

.cmodal__close:hover {
  color: var(--accent);
}

.cmodal__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}

.cmodal__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.cmodal__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(43, 38, 35, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
  font-family: inherit;
}

.cmodal__input::placeholder {
  color: rgba(43, 38, 35, 0.4);
}

.cmodal__input:focus {
  border-color: var(--accent);
}

.cmodal__success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.cmodal__success.show {
  display: block;
}

.cmodal__success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(78, 43, 52, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
}

.cmodal__form.hidden {
  display: none;
}

.cmodal.success > .cmodal__title,
.cmodal.success > .cmodal__desc {
  display: none;
}

/* ===== INLINE SUCCESS (light) ===== */
.inline-success {
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(78, 43, 52, 0.12);
  border-radius: 8px;
  text-align: center;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.inline-success__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(78, 43, 52, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--accent);
}

.inline-success__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 6px;
}

.inline-success__text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== INLINE SUCCESS (on dark CTA) ===== */
.inline-success--dark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.inline-success--dark .inline-success__icon {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.inline-success--dark .inline-success__title {
  color: var(--white);
}

.inline-success--dark .inline-success__text {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== COMMON RESPONSIVE ===== */
@media (max-width: 1200px) {
  .header .logo__img {
    height: 70px;
  }
}

@media (max-width: 1024px) {
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 430px) {
  .portfolio-watermark {
    font-size: 18px;
    padding: 5px 12px;
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .header__actions .btn--primary {
    display: none;
  }

  .burger {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-top: 28px;
  }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-bottom: 18px;
    text-align: center;
  }

  .footer__brand {
    max-width: none;
    align-items: center;
    gap: 8px;
  }

  .footer__desc {
    font-size: 12px;
    line-height: 1.55;
  }

  .footer__nav-title {
    margin-bottom: 8px;
  }

  .footer__nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    align-items: start;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
  }

  .footer__nav-list li:nth-child(1) { grid-column: 1; grid-row: 1; }
  .footer__nav-list li:nth-child(2) { grid-column: 2; grid-row: 1; }
  .footer__nav-list li:nth-child(3) { grid-column: 1; grid-row: 2; }
  .footer__nav-list li:nth-child(4) { grid-column: 2; grid-row: 2; }
  .footer__nav-list li:nth-child(5) { grid-column: 1; grid-row: 3; }
  .footer__nav-list li:nth-child(6) { grid-column: 2; grid-row: 3; }

  .footer__nav-link {
    display: block;
    line-height: 1.35;
  }

  .footer__contact {
    align-items: center;
    gap: 8px;
  }

  .footer__call {
    padding: 9px 16px;
  }

  .footer__socials {
    justify-content: center;
    gap: 10px;
  }

  .footer__cta-btn {
    width: 100%;
    max-width: 280px;
    margin-top: 0;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    padding: 10px 0 12px;
    gap: 6px;
  }

  .footer__legal-links {
    justify-content: center;
  }

  .footer__legal {
    white-space: normal;
    line-height: 1.4;
  }

  .footer-credit {
    margin-left: 0;
    align-self: center;
    margin-top: 0;
    padding: 6px 12px 7px;
  }

  .section--cta,
  .svc-section--cta {
    padding-bottom: 36px;
  }

  .cta-block__form-wrap .form-privacy,
  .cta-block__form-wrap .form-privacy--light {
    margin-bottom: 0;
  }

  .footer-credit__title {
    font-size: 15px;
    letter-spacing: 0.26em;
  }

  .footer-credit__text {
    max-width: 200px;
  }

  .header__call {
    width: 36px;
    height: 36px;
  }

  .header__call svg {
    width: 14px;
    height: 14px;
  }

  .header .logo__img {
    height: 56px;
    width: auto;
    max-width: none;
  }

  .footer .logo__img {
    width: 120px;
    height: auto;
  }

  .mobile-menu {
    padding: 24px 20px 32px;
  }

  .mobile-menu__text {
    font-size: 18px;
  }

  .mobile-menu .nav__link {
    font-size: 18px;
    padding: 10px 0;
  }

  .form-privacy,
  .modal__privacy {
    font-size: 10px;
    line-height: 1.6;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 16px;
  }

  .modal {
    padding: 28px 20px;
  }
}
