/* ==========================================
   1. ОБЩИЕ СТИЛИ, ПЕРЕМЕННЫЕ И СБРОС (Для всего сайта)
   ========================================== */
:root {
  --o: #ff5100;
  --orange: #ff5100;
  --t: rgba(16, 16, 16, 0.95);
  --text: #101010;
  --t6: rgba(16, 16, 16, 0.6);
  --text-muted: rgba(16, 16, 16, 0.6);
  --ln: rgba(16, 16, 16, 0.2);
  --line: rgba(16, 16, 16, 0.2);
  --bg: #d2d2d2;
  --dark-bg: #101010;
  --gap: 200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--t);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  -webkit-user-drag: none;
}

a {
  color: inherit;
  text-decoration: none;
}

.w {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  scroll-margin-top: 40px;
}

main > section + section {
  margin-top: var(--gap) !important;
}

footer {
  margin-top: var(--gap) !important;
}

.tx { letter-spacing: -0.04em; }
.h4 { font: 600 32px/36px Roboto, sans-serif; text-transform: uppercase; }
.lb { font: 600 24px/28px Roboto, sans-serif; text-transform: uppercase; margin-bottom: 40px; }
.lb small, small { font: 500 16px/20px Roboto, sans-serif; text-transform: none; color: var(--t6); margin-left: 10px; }
.t6 { color: var(--t6); }

/* Начальные состояния для анимации GSAP */
.js .hd, .js .nm, .js .logo, .js .tag, .js [data-r] { opacity: 0; }

/* Ссылки */
.link {
    width: fit-content;
    position: relative;
/*    display: inline-block;*/
    transition: opacity 0.2s, transform 0.2s;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}

.link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link:active {
  opacity: 0.5;
  transform: translateY(1px);
}

/* Кнопки */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: 0;
  border-radius: 40px;
  background: var(--o);
  color: rgba(255, 255, 255, 0.95);
  font: 500 16px/20px Roboto, sans-serif;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.3s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #101010;
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
}

    .btn:hover::before {
        transform: none;
    }
.btn:active { transform: scale(0.97); }
.btn > * { position: relative; }

.ar {
    width: 24px;
    height: 24px;
    transition: transform 0.35s var(--ease);
    background-image: url('assets/icon/right-arr.svg'); /* Указали путь к файлу */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btn:hover .ar { transform: translateX(5px); }
.full { display: flex; width: 100%; margin-top: 40px; }


/* ==========================================
   2. СТИЛИ ГЛАВНОЙ СТРАНИЦЫ (INDEX.HTML)
   ========================================== */
.hd {
  display: grid;
  grid-template-columns: 383px 1fr auto;
  align-items: center;
  padding-top: 40px;
  font: 500 20px/24px Roboto, sans-serif;
}

.hd nav { display: flex; gap: 32px; }

.hero { margin-top: 184px; margin-bottom: 250px; }
.hero + .ab { margin-top: 0; }

.nm {
    display: flex;
    gap: 10px;
    align-items: center;
    width: max-content;
    font: 500 20px/28px Roboto, sans-serif;
    margin-top: 200px
}
.nm i { width: 206px; height: 2px; background: var(--t); }

.lg { position: relative; margin-top: 20px; }
.logo { width: 100%; height: auto; aspect-ratio: 1520/399; }
.logo {
    width: 100%;
    height: auto;
    display: block;
}
.tag {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 450px;
  text-transform: uppercase;
}
.tag b { color: var(--o); font-weight: 500; }

/* Обо мне */
.ab { display: grid; grid-template-columns: 383px 1fr; }
.ab .lb { margin: 0; }
.lead { font: 500 40px/44px Roboto, sans-serif; }
.lead span { display: block; padding-left: 382px; }

.abc {
  display: grid;
  grid-template-columns: 371px 373px;
  grid-template-rows: 1fr auto;
  column-gap: 11px;
  height: 395px;
  margin-top: 20px;
}
.ph { grid-row: 1/3; overflow: hidden; background: #bbb; }
.ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stats { align-self: end; width: 420px; margin: 0 0 -6px 4px; text-transform: uppercase; }

/* Проекты */
.prg { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 10px; }
.card { display: block; }
.card div { height: 612px; overflow: hidden; background: #bbb; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card small { display: block; margin: 10px 0 4px; }
.card h3 { transition: color 0.3s, transform 0.5s var(--ease); }
.card:hover h3 { color: var(--o); transform: translateX(10px); }
.card:active { opacity: 0.7; }

/* Аккордеоны (Услуги / FAQ) */
.acc { border-bottom: 1px solid var(--ln); padding-bottom: 20px; }
.it { display: grid; grid-template-columns: 1fr minmax(0,755px); border-top: 1px solid var(--ln); margin-top: 20px; }
.it:first-child { margin-top: 0; }

.hdb {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr minmax(0,755px);
  padding: 20px 0 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.n { color: var(--t6); }
.tt { display: flex; align-items: center; justify-content: space-between; transition: color 0.3s; }
.hdb:hover .tt, .is-open .tt { color: var(--o); }
.faq .tt > span { max-width: 600px; }

.ic {
    position: relative;
    flex: none;
    width: 32px;
    height: 32px;
    transition: transform 0.4s var(--ease);
    background-image: url('assets/icon/plus.svg'); /* Иконка по умолчанию (плюс) */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Когда аккордеон открыт, меняем фон на иконку минуса */
.is-open .ic {
    background-image: url('assets/icon/cross.svg');
    transform: none; /* Убираем вращение, если иконка минуса уже нарисована горизонтально */
}

.pn { grid-column: 2; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.is-open .pn { grid-template-rows: 1fr; }
.pn__in { min-height: 0; overflow: hidden; max-width: 595px; opacity: 0; transition: opacity 0.4s; }
.is-open .pn__in { opacity: 1; transition-delay: 0.15s; }
.pn__in > :first-child { margin-top: 40px; }
.faq .pn__in { max-width: 600px; }
.faq .pn__in > :first-child { margin-top: 20px; }
.pn .t6 { margin-top: 20px; }
.pn .t6 + p { margin-top: 10px; }
.pn .btn { margin-top: 20px; margin-bottom: 0; }
.it:not(.is-open) .pn .btn { visibility: hidden; }


.sc { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; }
.sc::-webkit-scrollbar, .ps::-webkit-scrollbar { display: none; }
.sc img { flex: none; width: 174px; height: 174px; object-fit: cover; background: #bbb; }
.sc + .t6 { margin-top: 40px; }

/* Отступы для текста описания */
.service-desc {
    margin-top: 20px;
    margin-bottom: 25px;
}

/* Растягиваем содержимое открытого аккордеона на всю доступную ширину */
.pn__in {
    max-width: 100% !important; /* Убираем сжатие до 595px */
}

/* Отступы описания */
.service-desc {
    margin-top: 20px;
    margin-bottom: 16px;
    max-width: 755px; /* Чтобы текст описания красиво читался и не растягивался на слишком длинную строку */
}

/* Вложенный список этапов на всю ширину */
.sub-acc {
    width: 100%;
    border-top: 1px solid var(--ln);
    margin-bottom: 20px;
}

.sub-acc .sub-it:last-child {
        border-bottom: none;
    }

.sub-it {
    width: 100%;
    border-bottom: 1px solid var(--ln);
    list-style: none;
}

    .sub-it summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 0;
        font: 600 20px/24px Roboto, sans-serif; /* Размер как у заголовков на макете */
        cursor: pointer;
        outline: none;
    }

        /* Скрываем стандартный маркер браузера у details */
        .sub-it summary::-webkit-details-marker,
        .sub-it summary::marker {
            display: none;
        }

/* Иконка плюса из твоей папки assets/icon/ */
.sub-ic {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex: none;
    background-image: url('assets/icon/plus.svg'); /* Путь к иконке плюса */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s var(--ease);
}

/* При открытии этапа сменяем иконку на минус/крестик */
.sub-it[open] .sub-ic {
    background-image: url('assets/icon/cross.svg'); /* Замени на close.svg / cross.svg если файл так называется */
}

.sub-pn {
    padding-bottom: 20px;
    color: var(--t6);
    font-size: 20px;
    font: 400 20px/24px Roboto, sans-serif;
    line-height: 24px;
    max-width: 550px;
}

/* Нижняя панель с ценой и кнопкой */
.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: 20px;
    padding-bottom: 40px;
}

.service-price {
    font: 800 32px/36px Roboto, sans-serif;
    color: var(--t);
}

/* Процесс */
.ps { overflow-x: auto; scrollbar-width: none; cursor: grab; user-select: none; }
.psr { display: flex; gap: 10px; width: max-content; align-items: center; }
.st { flex: none; width: 373px; height: 374px; display: flex; flex-direction: column; justify-content: space-between; padding: 0 20px; border-left: 1px solid var(--o); }
.st:first-child { height: 334px; }
.st small { display: block; margin: 0 0 10px; }
.sl { position: relative; height: 10px; margin-top: 40px; border-radius: 40px; background: rgba(16,16,16,.1); cursor: pointer; }
.sl i { position: absolute; top: 0; left: 0; height: 10px; width: 40%; border-radius: 40px; background: var(--o); }

/* Форма заявки на главной */
.apl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.big { font: 500 40px/44px Roboto, sans-serif; max-width: 600px; }
.f {
  display: block;
  width: 100%;
  margin-bottom: 20px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 1px solid var(--ln);
  border-radius: 0;
  background: none;
  color: var(--t);
  font: 500 24px/28px Roboto, sans-serif;
  letter-spacing: -0.04em;
  outline: 0;
  transition: border-color 0.3s;
}
.f::placeholder { color: var(--t); transition: opacity 0.3s; }
.f:focus { border-color: var(--o); }
.f:focus::placeholder { opacity: 0.4; }
textarea.f { height: 77px; resize: none; }
form .full { margin-top: 0; }

/* Подвал главной страницы */
footer { padding: 40px 0; background: rgba(16,16,16,.8); color: rgba(255,255,255,.95); }
.ftc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 80px; }
.ftc .lb { font-weight: 600; }
.fl { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.flg { position: relative; margin-top: 40px; }
.flg img { width: 100%; height: auto; aspect-ratio: 1520/398; }
.info { position: absolute; left: 0; bottom: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font: 400 16px/20px Roboto, sans-serif; }

/*Окошко*/
.form-status {
    display: none;
    margin-top: 20px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    color: #2e7d32; /* Приятный спокойный зеленый цвет */
    transition: opacity 0.3s ease;
}

    .form-status.is-error {
        color: #d32f2f; /* Красный цвет для ошибок */
    }

/* ==========================================
   3. СТИЛИ СТРАНИЦЫ КЕЙСА (ESTY.HTML)
   ========================================== */
/*.case-hero { margin-top: 40px; }
.case-title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  max-width: 1200px;
  margin-bottom: 30px;
}

.meta-row {
  display: flex;
  gap: 60px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 40px;
}
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-label { color: var(--text-muted); font-size: 14px; }
.meta-val { font-weight: 700; font-size: 18px; }*/

/* Ноутбук баннер */
/*.banner-box {
  background: var(--orange);
  border-radius: 12px;
  padding: 80px 40px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.laptop-mockup { width: 100%; max-width: 800px; }

.laptop-screen {
  background: #111;
  border: 12px solid #222;
  border-radius: 12px 12px 0 0;
  aspect-ratio: 16 / 10;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.screen-content h2 { font-size: 48px; font-weight: 900; letter-spacing: -0.03em; margin: 10px 0; }
.brand-tag { font-size: 12px; letter-spacing: 2px; color: #aaa; }
.screen-cta { display: inline-block; margin-top: 15px; background: #fff; color: #000; padding: 8px 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; width: max-content; }
.laptop-base { height: 16px; background: #444; border-radius: 0 0 12px 12px; position: relative; }
.laptop-base::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 6px; background: #666; border-radius: 0 0 4px 4px; }


.hero {
    width: 100%;
    margin: 40px 0;
}

    .hero img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;*/ /* если хочешь скругления */
    /*}*/
/* Задача и проблемы */
/*.lead-text { font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: -0.03em; }
.task-grid, .problem-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.task-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.problem-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; border-top: 1px solid var(--line); padding-top: 20px; }*/

/* Что сделано */
/*.done-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.done-card { background: #c8c8c8; padding: 30px 20px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
.done-num { color: var(--orange); font-weight: 700; font-size: 16px; }
.done-card p { font-size: 16px; font-weight: 500; }*/

/* Решения */
/*.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
.sol-card h3 { font-size: 20px; font-weight: 700; margin: 15px 0 8px; text-transform: uppercase; }
.sol-card p { color: var(--text-muted); font-size: 16px; }
.sol-img { width: 100%; height: 360px; background: #bbb; border-radius: 4px; }*/

/* UI Kit кейса */
/*.uikit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ui-block { background: #c2c2c2; padding: 30px; min-height: 280px; }
.colors-block { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.color-swatch { height: 100px; padding: 10px; display: flex; align-items: flex-end; font-size: 12px; font-weight: 700; }
.c-dark { background: #101010; color: #fff; }
.c-white { background: #ffffff; color: #000; }
.c-orange { background: #ff5100; color: #fff; }
.c-gray { background: #7e7e7e; color: #fff; }
.typo-block { display: flex; flex-direction: column; justify-content: space-between; }
.typo-head { font-size: 28px; font-weight: 900; }
.screens-block { display: flex; gap: 10px; }
.screen-mini { flex: 1; background: #a8a8a8; height: 100%; }*/

/* Результаты */
/*.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); padding-top: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-size: 72px; font-weight: 900; line-height: 1; margin-bottom: 10px; }
.stat-desc { font-size: 15px; color: var(--text-muted); }
.full-btn { width: 100%; padding: 18px; margin-top: 40px; font-size: 18px; text-transform: uppercase; }*/

/* Аккордеон кейса ESTY */
/*.accordion { border-bottom: 1px solid var(--line); }
.acc-item { border-top: 1px solid var(--line); }
.acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 25px 0;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.acc-num { width: 80px; color: var(--text-muted); }
.acc-title { font-size: 22px; font-weight: 700; flex-grow: 1; }
.acc-icon { width: 20px; height: 20px; position: relative; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; background: var(--text); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.acc-icon::before { width: 16px; height: 2px; }
.acc-icon::after { width: 2px; height: 16px; transition: transform 0.3s; }
.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s; padding-left: 80px; }
.is-open .acc-body { max-height: 200px; padding-bottom: 30px; }*/

/* Темная форма внизу кейса */
/*.apply-dark-sec { background: var(--dark-bg); color: #fff; padding: 100px 0; margin-top: 140px; }
.apply-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.apply-text h2 { font-size: 32px; line-height: 1.3; font-weight: 700; }
.apply-form { display: flex; flex-direction: column; gap: 20px; }
.apply-form input { background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding: 15px 0; color: #fff; font-size: 18px; outline: none; }
.apply-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.btn-orange { background: var(--orange); color: #fff; border-radius: 40px; padding: 16px; font-weight: 700; cursor: pointer; }
.btn-outline { border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; border-radius: 40px; padding: 16px; text-align: center; }

.ftr { display: flex; justify-content: space-between; padding: 40px; font-size: 14px; color: var(--text-muted); }*/


/* ==========================================
   4. АДАПТИВНОСТЬ (ДЛЯ ОБЕИХ СТРАНИЦ)
   ========================================== */
/*@media (max-width: 1100px) {
  
  .task-cols, .done-grid, .stats-row, .uikit-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: 1fr; }
  .apply-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .case-title { font-size: 28px; }
  .lead-text { font-size: 22px; }
  .meta-row { flex-direction: column; gap: 15px; }
  .task-cols, .problem-cols, .done-grid, .stats-row, .uikit-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 50px; }
  .acc-body { padding-left: 0; }
  .w { padding: 0 20px; }
}*/