:root{
  --bg:#fafafa;
  --bg-card:#ffffff;
  --text:#333;
  --muted:#777;
  --line:#eaeaea;
  --accent:#a06bff; /* фиолетовый */
  --accent2:#ff8ad9; /* розовый */
  --accent3:#f1d7c4; /* бежевый персиковый */
}
/* === Единый шрифт по всему сайту === */
html, body, input, textarea, button, select {
  font-family: "Inter", "Source Sans Pro", Roboto, system-ui, -apple-system, Arial, sans-serif !important;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}
*{ box-sizing:border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body{
  background: var(--bg) url("images/pattern-bg.png") repeat fixed;
  background-size: 480px; /* подгони масштаб, если крупно/мелко */
  color: var(--text);
  font: 16px/1.6 "Inter","Open Sans",system-ui,-apple-system,Arial,sans-serif;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.no-scroll{ overflow:hidden; }

/* ---------- Header (glass appears after scroll) ---------- */
#header{
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
}

/* начальное состояние: почти прозрачный, без blur */
#header .header-wrap{
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 28px;
  background: rgba(255,255,255,.22);
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

/* состояние ПОСЛЕ скролла: стекло + blur */
.header-scrolled #header .header-wrap{
  background: rgba(255,255,255,.16);
  border-bottom-color: rgba(255,255,255,.55);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
}

/* языки слева */
.language-switch{ display:flex; align-items:center; gap:10px; }
.language-switch .lang-text{
  font:600 0.95em/1 "Source Sans Pro",Roboto,sans-serif;
  text-transform:uppercase; color:#111;
  padding-bottom:4px; border-bottom:1px solid transparent;
  cursor:pointer; transition:.2s;
}
.language-switch .lang-text:hover,
.language-switch .lang-text.active{
  color:var(--accent); border-bottom-color:var(--accent);
}
.language-switch .separator{ color:#bbb; }

/* меню справа */
#navbar .menu-list{
  display:flex; align-items:center; gap:24px; list-style:none; margin:0; padding:0;
}
#navbar .menu-list a{
  font:600 0.95em/1 "Source Sans Pro",Roboto,sans-serif;
  text-transform:uppercase; color:#111;
  padding-bottom:4px; border-bottom:1px solid transparent; transition:.2s;
}
#navbar .menu-list a:hover,
#navbar .menu-item.active a{
  color:var(--accent); border-bottom-color:var(--accent);
}

/* hero под самым хедером — без зазора */
#hero{ margin-top:0 !important; }

/* якоря не залезают под фикс-хедер */
.section, #hero{ scroll-margin-top: 90px; }

/* мобильная плотность */
@media (max-width: 1080px){
  #header .header-wrap{ padding:14px 18px; }
  #navbar .menu-list{ gap:16px; }
}

/* доступность: если у пользователя снижена прозрачность */
@media (prefers-reduced-transparency: reduce){
  #header .header-wrap,
  .header-scrolled #header .header-wrap{
    background:#ffffff;
    backdrop-filter:none; -webkit-backdrop-filter:none;
    border-bottom-color: var(--line);
  }
}

/* ---------- Hero ---------- */
#hero{
  position: relative;
  min-height: 86vh;
  margin-top: 70px;

  /* 👉 твой файл фона здесь: */
  background: url("images/hero-mannequin.png") right center / cover no-repeat;

  /* если нужно больше «пустоты» слева — чуть сдвинь вправо: */
  /* background-position: 80% center; */

  display: flex;
  align-items: center;
}
#hero .overlay{
  position: absolute; inset: 0;

  /* мягкий свет слева → справа прозрачнее (чтобы слева был читабельный текст) */
  background: linear-gradient(
    90deg,
    rgba(250,250,250,0.95) 0%,
    rgba(250,250,250,0.70) 42%,
    rgba(250,250,250,0.25) 72%,
    rgba(250,250,250,0.00) 100%
  );
}
#hero .hero-content{
  position: relative; z-index: 1; max-width: 720px;
  margin-left: 8vw;
}
#hero h1{
  font: 800 44px/1.1 "Inter", system-ui, sans-serif;
  margin: 0 0 8px; color: #111;
}
#hero .subtitle{ color:#444; margin:0 0 20px; }

/* кнопки и соц-иконки оставляем как было */
.btn{ display:inline-block; padding:14px 26px; border-radius:28px; border:1px solid #ddd; transition:.25s; }
.btn.big{ padding:16px 30px; font-weight:700; }
.btn-accent{ background:var(--accent); color:#fff; border-color:var(--accent); }
.btn-accent:hover{ background:#c599ff; border-color:#c599ff; }
.btn-outline{ background:#fff; color:#111; }
.btn-outline:hover{ background:#f2f2f2; }

.social-row{ display:flex; gap:14px; margin-top:18px; }
.social-row.center{ justify-content:center; }
.social-row a{ color:#333; font-size:1.25rem; opacity:.8; transition:.2s; }
.social-row a:hover{ color:var(--accent); opacity:1; transform:translateY(-1px); }
/* ---------- Sections ---------- */
.section{ padding:90px 0; }
.container{ width:100%; max-width:1200px; margin:0 auto; padding:0 24px; }

/* Еле заметный персиковый паттерн, фиксированный по странице */
.patterned{
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.97)),
    url("images/pattern.webp");
  background-size:auto, 600px 600px;  /* масштаб плитки */
  background-repeat:repeat;
  background-attachment:fixed;        /* статично при скролле */
}

/* Фолбэк на старые браузеры без webp (не обязательно, но можно) */
@supports not (background: url("x.webp")){
  .patterned{
    background:
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.97)),
      url("images/pattern.png");
    background-size:auto, 600px 600px;
    background-repeat:repeat;
    background-attachment:fixed;
  }
}

/* ---------- About ---------- */
#about {
   background: #fff; /* убрали подложку */
  border: none;            /* убрали рамку */
  padding: 80px 0;
}

.about-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  max-width: 800px;          /* <-- чуть уже текст */
  margin: 0 auto;
  background: none;          /* убираем фон карточки */
  border: none;
  box-shadow: none;
}

.about-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* аватар */
.avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* текст */
.about-text h2 {
  margin: 4px 0 10px;
  font: 700 28px/1.2 "Inter", sans-serif;
  color: #111;
}

.about-text p {
  margin: 0 0 10px;
  color: #333;
}

/* адаптив для мобил */
@media (max-width: 768px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px;
  }

  .avatar {
    margin: 0 auto 16px;
  }
}
/* ---------- Portfolio (4 в ряд, полупрозрачный фон) ---------- */
#portfolio{
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(1.1) blur(2px);
  -webkit-backdrop-filter: saturate(1.1) blur(2px);
  border-block: 1px solid rgba(0,0,0,.03);
  padding: 80px 0;
}
.section-title{
  font: 800 30px/1.2 "Source Sans Pro", Roboto, sans-serif;
  color:#111; text-align:center; margin:0 0 20px;
}
.portfolio-note{
  max-width:800px; margin:0 auto 32px; text-align:center;
  color:#555; font:400 15px/1.6 "Source Sans Pro", Roboto, sans-serif; opacity:.9;
}
.grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:10px;
}
.grid figure{
  position:relative; overflow:hidden; border-radius:12px; background:#eee; aspect-ratio:4/5;
}
.grid img{
  width:100%; height:100%; object-fit:cover; transition:transform .35s ease;
}
.grid figure:hover img{ transform:scale(1.04); }
.portfolio-actions{ text-align:center; margin-top:18px; }

/* ---------- Brands strip ---------- */
#brands .strip {
  background: linear-gradient(90deg, #B07DDF, #F4D4CA);
  border-block: 1px solid #E6C0DA;
}

.strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.brand-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.brand-logos img {
  height: 36px;            /* немного больше, для визуального равновесия */
  opacity: 0.8;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.brand-logos img:hover {
  opacity: 1;
  filter: none;
  transform: scale(1.05);
}
/* ---------- Contact (полупрозрачный аккуратный блок) ---------- */
#contact{
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(1.1) blur(2px);
  -webkit-backdrop-filter: saturate(1.1) blur(2px);
  border-block: 1px solid rgba(0,0,0,.03);
  padding: 40px 0;
}
#contact .contact-header h2{ display:none; }
#contact .contact-header{
  max-width:720px; margin:0 auto;
  display:flex; justify-content:center; align-items:center; gap:14px;
}
#contact .social-row{
  display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap;
}
#contact .social-row a{
  color:#333; font-size:1.6rem; opacity:.9; transition:.25s;
}
#contact .social-row a:hover{ color:var(--accent); opacity:1; transform:translateY(-2px); }
#contact .contact-note{
  text-align:center; font-size:.95rem; color:#444; margin-top:16px;
}

/* ---------- Services (4 в ряд, полупрозрачная секция + белые карточки) ---------- */
#services{
  background: rgba(255,255,255,.75);
  backdrop-filter: saturate(1.1) blur(2px);
  -webkit-backdrop-filter: saturate(1.1) blur(2px);
  padding: 80px 0;
}
.cards{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:10px;
}
.card{
  background: var(--bg-card,#fff);
  border:1px solid var(--line,#eaeaea);
  border-radius:14px; padding:22px; transition:.25s;
  box-shadow:0 8px 24px rgba(0,0,0,.04);
}
.card:hover{ transform:translateY(-2px); box-shadow:0 12px 30px rgba(0,0,0,.08); }
.icon-spot{
  width:56px; height:56px; border-radius:14px; margin-bottom:14px;
  background:linear-gradient(135deg, var(--accent,#a06bff), var(--accent2,#ffb6e9));
  display:flex; align-items:center; justify-content:center;
}
.service-icon{ width:36px; height:36px; object-fit:contain; }
.card h3{ margin:8px 0; color:#2a2a2a; font-weight:600; }
.card p{ color:#4b4b4b; line-height:1.5; margin:0; }

/* ---------- Footer ---------- */
#footer{ border-top:1px solid var(--line); padding:20px 0; text-align:center; color:#666; }

/* ---------- LIGHTBOX (оверлей) ---------- */
.lb{
  position:fixed; inset:0; background:rgba(0,0,0,.82);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity .2s ease; z-index:2000;
}
.lb[aria-hidden="false"]{ opacity:1; pointer-events:auto; }
.lb__img{
  max-width:90vw; max-height:85vh; border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.45); display:block;
}
.lb__btn{
  position:absolute; color:#fff; background:none; border:none; cursor:pointer;
  font-size:46px; line-height:1; opacity:.9; transition:.2s; user-select:none;
  transform:translateY(0); /* фикс: сбросим общий transform */
}
.lb__btn:hover{
  opacity:1;
  transform:none; /* убираем сдвиг, чтобы не прыгала */
}
.lb__close{ top:6%; right:3%; font-size:48px; }
.lb__prev { top:50%; left:3%;  transform:translateY(-50%); }
.lb__next { top:50%; right:3%; transform:translateY(-50%); }
.no-scroll{ overflow:hidden; }

/* ---------- Modal (единыe шрифты) ---------- */
.modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition:.25s; z-index:2000; }
.modal[aria-hidden="false"]{ opacity:1; pointer-events:auto; }
.modal__backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.45); backdrop-filter:blur(2px); }
.modal__dialog{
  position:relative; z-index:1; width:min(560px,92vw);
  background:rgba(255,255,255,.9); backdrop-filter:blur(8px);
  border:1px solid var(--line); border-radius:16px; padding:22px 22px 18px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.modal__title{ margin:0 0 10px; font:800 22px/1.2 "Inter",system-ui,sans-serif; color:#111; }
.modal__close{
  position:absolute; top:8px; right:10px; border:none; background:transparent;
  font-size:26px; line-height:1; cursor:pointer; color:#444;
}
.modal__close:hover{ color:#000; }
.form__label{ display:block; font:600 14px/1.2 "Inter"; color:#333; margin:10px 0 6px; }
.form__input,.form__textarea{
  width:100%; padding:12px 14px; border:1px solid #ddd; border-radius:10px;
  font:400 15px/1.45 "Inter",system-ui,-apple-system,Arial,sans-serif; color:#222; background:#fff;
  transition:border-color .2s, box-shadow .2s;
}
.form__input:focus,.form__textarea:focus{
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(160,107,255,.12);
}
.form__textarea{ resize:vertical; min-height:120px; }
.modal__submit{ margin-top:12px; width:100%; border-radius:12px; font-weight:700; }
.form__note{ margin:8px 0 0; text-align:center; color:#777; font-size:13px; }
.form__status{ margin-top:10px; text-align:center; font-size:14px; }
.hidden{ display:none !important; }
body.dark-theme .modal__dialog{ background:rgba(20,20,22,.9); color:#eee; border-color:rgba(255,255,255,.12); }
body.dark-theme .form__input, body.dark-theme .form__textarea{ background:#151515; color:#eee; border-color:#333; }
.modal__title,.form__label,.form__input,.form__textarea,.form__note,.modal__submit{
  font-family:"Inter","Source Sans Pro",Roboto,system-ui,-apple-system,Arial,sans-serif !important;
  color:var(--text);
}

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .grid{ grid-template-columns:repeat(3,1fr); }
  .cards{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:720px){
  .grid{ grid-template-columns:repeat(2,1fr); gap:8px; }
  .cards{ grid-template-columns:1fr; }
  #header .header-wrap{ padding:14px 16px; }
  #hero{ margin-top:0; min-height:70vh; background-position:75% center; }
  #hero .hero-content{ margin-inline:18px; }
  .about-card{ grid-template-columns:1fr; text-align:center; }
  .avatar{ margin:0 auto; }
}
@media (max-width:640px){
  .lb__btn{ font-size:38px; }
  .lb__close{ font-size:42px; }
}
/* === Fluid type === */
html{
  /* мягкая адаптация базового размера */
  font-size: clamp(14px, 1.6vw, 16px);
}
h1{ font-size: clamp(26px, 4.6vw, 44px); }
h2{ font-size: clamp(22px, 3.6vw, 30px); }
h3{ font-size: clamp(18px, 2.8vw, 22px); }

/* чуть плотнее общий вертикальный ритм на мобилке */
@media (max-width: 480px){
  :root{ --section-pad: 56px; }
  section{ padding: var(--section-pad) 0; }
}
/* === Burger button === */
.burger {
  display: none;
  width: 40px;
  height: 32px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
}

.burger span {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: #000; /* чёрный */
  border-radius: 2px;
  transition: 0.25s;
}
.burger span:nth-child(1) { top: 8px; }
.burger span:nth-child(2) { top: 15px; }
.burger span:nth-child(3) { top: 22px; }

.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); }

/* навигация */
.nav {display: flex; gap: 22px; align-items: center; }

/* === Mobile nav: full-screen translucent overlay === */
@media (max-width: 860px){
  /* бургер показываем, хедер поверх */
  .burger{display:block; }
  #header .header-wrap{ position: relative; z-index: 1001; }

  /* сам оверлей */
  .nav{
    position: fixed;
    inset: 0;                /* на весь экран */
    top: 64px;               /* под шапкой (подгони под высоту твоего header) */
    background: linear-gradient(
      to bottom,
      rgba(255, 236, 246, .88),   /* нежно беж-роз */
      rgba(236, 222, 255, .88)    /* к фиолетовому */
    );
    backdrop-filter: blur(8px) saturate(1.05);
    -webkit-backdrop-filter: blur(8px) saturate(1.05);
    padding: 16px 18px;
    border-top: 1px solid rgba(0,0,0,.06);

    display: block;          /* вместо горизонтального flex */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
    z-index: 1000;
  }
  .nav.is-open{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* список — в столбик, по центру, немного компактней */
  .menu-list{
    list-style: none;
    margin: 0;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  /* ссылки-плитки: чуть меньший шрифт, кликабельная зона */
  .menu-list a{
    display: block;
    text-align: center;
    padding: 12px 14px;
    font-weight: 600;
    font-size: clamp(14px, 4.2vw, 16px); /* поменьше на мобилке */
    color: #111;
    background: rgba(255,255,255,.65);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 12px;
    transition: transform .15s ease, background .15s ease;
  }
  .menu-list a:active{ transform: translateY(1px); }

  /* блокируем скролл страницы, когда меню открыто */
  body.menu-open{ overflow: hidden; }
}

/* ===== Портфолио адаптив ===== */
@media (max-width: 1080px) {
  #portfolio .grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 720px) {
  #portfolio .grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  #portfolio .grid figure { aspect-ratio: 3/4; border-radius: 10px; }
}
@media (max-width: 380px) {
  #portfolio .grid { gap: 4px; }
  #portfolio .grid figure { aspect-ratio: 3/4; }
}