:root {
    --bg: #e7e2e4;
    --pink: #edc9d3;
    --pink-soft: #f2dbe2;
    --text: #231f20;
    --white: #ffffff;
    --shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    --radius: 18px;
    --container: 1440px;
    --header-height: 88px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

.no-copy {
    /* -webkit-touch-callout: none; iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    /* user-select: none; Standard syntax */
    -webkit-user-drag: none; /* Safari */
    -khtml-user-drag: none; /* Konqueror HTML */
    -moz-user-drag: none; /* Firefox */
    /* user-drag: none; Standard syntax */
    pointer-events: none; /* Prevents all mouse interactions, including right-click context menu in some cases */
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.35;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 50;
    transform: translateY(calc(-100% - 12px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-header.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.site-header__inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 12px auto 0;
    height: var(--header-height);
    background: rgba(237, 201, 211, 0.96);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 0.9;
    flex-shrink: 0;
}

.brand__logo {
    font-size: 54px;
    font-weight: 900;
    letter-spacing: -0.1em;
}

.brand__text {
    font-size: 16px;
    font-weight: 700;
    margin-top: -2px;
    text-align: center;
}

.footer .brand {
    display: flex;
    justify-self: first baseline;
    align-items: center;   /* ВАЖНО: выравнивание по вертикали */
    gap: 12px;             /* расстояние между MA и текстом */
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
    justify-content: center;
}

.nav a {
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.nav a:hover {
    opacity: 0.65;
}

.header-contact {
    text-align: right;
    flex-shrink: 0;
}

.header-contact__phone {
    display: block;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.header-contact__meta {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #dcbfc8;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
    radial-gradient(circle at center, rgba(255,255,255,0.02), rgba(241, 214, 223, 0.12) 60%, rgba(241, 214, 223, 0.5) 100%),
    linear-gradient(90deg, rgba(39, 29, 32, 0.28) 0%, rgba(39, 29, 32, 0.08) 35%, rgba(237, 201, 211, 0.14) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__box {
    width: min(100%, 430px);
    color: #fff;
    padding-top: 40px;
}

.hero__title {
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero__text {
    font-size: clamp(18px, 2vw, 24px);
    max-width: 420px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 34px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 400px);
    min-height: 58px;
    border-radius: 16px;
    background: var(--white);
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.section {
    padding: 92px 0;
}

.section-title {
    font-size: clamp(38px, 4vw, 62px);
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 34px;
}

.section-title--right {
    text-align: right;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    background: #d8cfd2;
    aspect-ratio: 0.82;
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card__label {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    max-width: 124px;
    border-radius: 999px;
    background: rgba(26, 22, 24, 0.56);
    color: #fff;
    padding: 10px 16px;
    font-size: 12px;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.cta-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 430px;
    background: var(--pink-soft);
}

.cta-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-split__content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.cta-box {
    max-width: 520px;
    text-align: center;
}

.cta-box h3 {
    font-size: clamp(28px, 3.1vw, 52px);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.cta-box p {
    font-size: clamp(18px, 2vw, 28px);
    color: rgba(35, 31, 32, 0.82);
    margin-bottom: 30px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.2fr 88px;
    gap: 24px;
    align-items: center;
}

.contacts-list {
    display: grid;
    gap: 22px;
    margin-top: 26px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 500;
}

.contact-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacts-main {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    background: #d7cdd0;
}

.contacts-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 0.76;
}

.contacts-thumbs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts-thumbs img {

    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.contacts-thumbs img.active,
.contacts-thumbs img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer {
    background: var(--pink);
    padding: 28px 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 0.9fr 1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.footer__center {
    text-align: center;
    font-size: 16px;
    color: rgba(35, 31, 32, 0.86);
}

.footer__center p + p {
    margin-top: 6px;
}

.footer__contacts {
    justify-self: end;
    display: grid;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

@media (max-width: 991px) {
    /* .header-contact {
      display: none;
    } */

    /* можно чуть плотнее сделать меню */
    .nav {
      gap: 14px;
      font-size: 13px;
    }

    .site-header__inner {
    border-radius: 0 0 18px 18px;
    }

    .portfolio-grid,
    .cta-split,
    .contacts-grid,
    .footer__grid {
    grid-template-columns: 1fr;
    }

    .contacts-thumbs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    }

    .contacts-thumbs img {
    width: 76px;
    height: 76px;
    flex: 0 0 auto;
    }

    .footer__contacts,
    .footer__center {
    justify-self: start;
    text-align: left;
    }
}

.footer__contacts {
  gap: 8px;
}

.footer__contacts .contact-item {
  font-size: 13px;
}

@media (max-width: 767px) {
  :root {
    --header-height: 74px;
  }

  .container,
  .site-header__inner {
    width: min(100%, calc(100% - 20px));
  }

  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 50;
    transform: translateY(calc(-100% - 12px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .site-header.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__inner {
    margin-top: 10px;
    padding: 14px 16px;
    min-height: var(--header-height);
    align-items: center;
    flex-wrap: wrap;
  }

  .brand__logo {
    font-size: 44px;
  }

  .brand__text {
    font-size: 14px;
  }

  .mobile-nav {
    display: none;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.08);
  }

  .site-header.menu-open .mobile-nav {
    display: grid;
    gap: 12px;
  }

  .mobile-nav a,
  .mobile-nav .mobile-phone {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .hero {
    min-height: 760px;
    align-items: flex-start;
  }

  .hero__content {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .hero__box {
    width: 100%;
    max-width: 100%;
  }

  .hero__title {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .hero__text {
    font-size: 16px;
    margin-bottom: 24px;
    max-width: 290px;
  }

  .btn {
    min-height: 54px;
    font-size: 17px;
    width: 100%;
  }

  .section {
    padding: 62px 0;
  }

  .section-title,
  .section-title--right {
    text-align: left;
    font-size: 28px;
    margin-bottom: 22px;
  }

  .portfolio-grid {
    gap: 14px;
  }

  .portfolio-card {
    aspect-ratio: 0.9;
  }

  .cta-split__content {
    padding: 28px 20px 34px;
  }

  .cta-box h3 {
    font-size: 26px;
  }

  .cta-box p {
    font-size: 16px;
  }

  .contact-item {
    font-size: 18px;
  }

  .contacts-list {
    gap: 16px;
  }

  .contacts-main img {
    aspect-ratio: 0.88;
  }

  .footer {
    padding: 24px 0;
  }
}

/* ===== AUTO DARK THEME (system-based) ===== */
@media (prefers-color-scheme: dark) {

  body {
    background: #1a1a1a;
    color: #ffffff;
  }

  /* розовые блоки → тёмные */
  .site-header__inner,
  .cta-split,
  .footer {
    background: #212121 !important;
    color: #ffffff;
  }

  /* текст внутри блоков */
  .nav a,
  .header-contact,
  .header-contact__phone,
  .contact-item {
    color: #ffffff;
  }

  /* описание в CTA */
  .cta-box p {
    color: rgba(255, 255, 255, 0.8);
  }

  /* кнопки */
  .btn {
    background: #2c2c2c;
    color: #ffffff;
  }

  /* карточки портфолио */
  .portfolio-card {
    background: #2a2a2a;
  }

  /* футер текст */
  .footer__center {
    color: rgba(255, 255, 255, 0.8);
  }

  /* чтобы картинки не "выпадали" слишком ярко (опционально) */
  img {
    filter: brightness(0.95);
  }
}

@media (prefers-color-scheme: dark) {
  .contact-icon img {
    filter: invert(1);
  }
}
/* ===== КРАСИВЫЙ СКРОЛЛ ===== */
.contacts-thumbs::-webkit-scrollbar {
  height: 6px;
}

.contacts-thumbs::-webkit-scrollbar-track {
  background: #2a2a2a; /* фон */
  border-radius: 10px;
}

.contacts-thumbs::-webkit-scrollbar-thumb {
  background: #555; /* ползунок */
  border-radius: 10px;
  transition: background 0.2s;
}

.contacts-thumbs::-webkit-scrollbar-thumb:hover {
  background: #777;
}