@charset "UTF-8";
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #f5a623;
  --accent-dark: #d98c12;
  --dark: #1c2430;
  --gray: #5b6774;
  --light: #f5f7fa;
  --white: #fff;
}

body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--dark); line-height: 1.6; background: var(--white); }
a { color: inherit; text-decoration: none; }
html { scroll-padding-top: 84px; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header { background: var(--dark); color: var(--white); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo__icon { font-size: 28px; color: var(--accent); }
.logo__title { font-weight: 700; font-size: 20px; }
.logo__sub { font-size: 12px; color: #b7c0cc; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { font-size: 15px; opacity: 0.9; }
.nav a:hover { color: var(--accent); opacity: 1; }

/* Бургер-меню (показывается только на мобильных) */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); border-radius: 9px; cursor: pointer; }
.burger span { display: block; height: 2px; width: 100%; border-radius: 2px; background: var(--accent); transition: transform 0.2s ease, opacity 0.2s 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); }

/* Buttons */
.btn { display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: 0.2s; font-size: 15px; }
.btn--call { background: var(--accent); color: var(--dark); }
.btn--call:hover { background: var(--accent-dark); }
.btn--primary { background: var(--accent); color: var(--dark); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--dark); }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #1c2430 0%, #2b3a4d 100%); color: var(--white); padding: 70px 0; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.9; }
.hero__inner { position: relative; z-index: 1; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.hero__text { flex: 1 1 480px; }
.hero__text h1 { font-size: 38px; line-height: 1.2; margin-bottom: 18px; }
.hero__text p { font-size: 17px; color: #d3dae2; margin-bottom: 26px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__card { flex: 0 1 340px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 14px; padding: 26px; }
.hero__card-title { font-weight: 700; margin-bottom: 14px; color: var(--accent); }
.hero__card ul { list-style: none; display: grid; gap: 10px; font-size: 15px; }
.bolt path { animation: boltFlicker 5s ease-in-out infinite; }
@keyframes boltFlicker { 0%, 100% { filter: brightness(1); } 48% { filter: brightness(1.4); } 50% { filter: brightness(0.85); } 52% { filter: brightness(1.3); } }

/* Sections */
.section { position: relative; padding: 64px 0; background-image: radial-gradient(circle at 20% 20%, rgba(245,166,35,0.05) 0, transparent 40%), radial-gradient(circle at 80% 80%, rgba(245,166,35,0.05) 0, transparent 40%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d8dee7' stroke-width='1'%3E%3Cpath d='M10 10 H50 V50 H110'/%3E%3Cpath d='M10 70 H30 V110'/%3E%3Cpath d='M70 10 V40 H110'/%3E%3C/g%3E%3Cg fill='%23f5a623' opacity='0.5'%3E%3Ccircle cx='10' cy='10' r='2.5'/%3E%3Ccircle cx='50' cy='50' r='2.5'/%3E%3Ccircle cx='110' cy='50' r='2.5'/%3E%3Ccircle cx='30' cy='110' r='2.5'/%3E%3Ccircle cx='70' cy='40' r='2.5'/%3E%3Ccircle cx='110' cy='40' r='2.5'/%3E%3C/g%3E%3C/svg%3E"); background-size: auto, auto, 120px 120px; }
.section--alt { background-color: var(--light); background-image: radial-gradient(circle at 50% 0%, rgba(245,166,35,0.08) 0, transparent 50%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23cfd6df' stroke-width='1'%3E%3Cpath d='M0 40 H80'/%3E%3Cpath d='M40 0 V80'/%3E%3C/g%3E%3Cg fill='%23f5a623' opacity='0.35'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3C/g%3E%3C/svg%3E"); background-size: auto, 80px 80px; }
.section > .container { position: relative; z-index: 1; }
.section__title { font-size: 30px; margin-bottom: 10px; position: relative; display: inline-block; padding-bottom: 12px; }
.section__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 90px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), #ffe08a, var(--accent)); background-size: 200% 100%; animation: sparkLine 3s linear infinite; }
@keyframes sparkLine { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.section__lead { color: var(--gray); margin-bottom: 32px; max-width: 720px; }

/* Grid cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--white); border: 1px solid #e3e8ee; border-radius: 12px; padding: 24px; transition: 0.2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.card h3 { margin-bottom: 10px; font-size: 19px; }
.card p { color: var(--gray); font-size: 15px; }

/* Прайс */
.price-accordion { display: grid; gap: 18px; }
/* Позволяем таблицам скроллиться внутри карточки, а не растягивать страницу на планшетах */
.price-accordion > * { min-width: 0; }
.price-group { background: var(--white); border: 1px solid #e3e8ee; border-radius: 12px; padding: 0 20px; }
.price-group summary { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; padding: 16px 0; cursor: pointer; outline: none; list-style: none; }
.price-group summary::-webkit-details-marker { display: none; }
.price-group summary .price-count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--gray); background: #f0f3f7; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.price-group[open] summary { border-bottom: 1px solid #edf1f5; }
.table-wrap { overflow-x: auto; padding-bottom: 16px; }
.price-table { width: 100%; border-collapse: collapse; background: var(--white); min-width: 600px; }
.price-table th, .price-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #edf1f5; font-size: 15px; }
.price-table thead th { background: var(--dark); color: var(--white); font-weight: 600; }
.price-table tbody tr:hover { background: #fafbfd; }
.price-table td:last-child { white-space: nowrap; font-weight: 600; color: var(--accent-dark); }
.price-note { margin-top: 10px; font-size: 14px; color: var(--gray); font-style: italic; padding: 14px 18px; background: #fff8e6; border-left: 4px solid var(--accent); border-radius: 6px; }

/* Stages */
.stages { display: grid; gap: 16px; padding-left: 20px; }
.stages li { padding-left: 8px; }

/* Form */
.form-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 14px; }
.form input, .form textarea { width: 100%; padding: 13px 15px; border: 1px solid #d5dce4; border-radius: 8px; font-size: 15px; font-family: inherit; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form__note { font-size: 14px; color: #2e9d4f; min-height: 20px; }
.form__note a { color: inherit; font-weight: 600; text-decoration: underline; }

/* Footer */
.footer { background: var(--dark); color: #d3dae2; padding: 44px 0 20px; }
.footer__inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.footer a { color: var(--accent); }
.footer__phone { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* Иконка мессенджера рядом с телефоном */
.msg-link { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); transition: 0.2s; }
.msg-link:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); transform: translateY(-1px); }
.msg-link img { display: block; width: 22px; height: 22px; border-radius: 5px; }
.msg-link--static { cursor: default; }
.msg-link--static:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); transform: none; }
.msg-link--call { background: rgba(46,157,79,0.16); border-color: rgba(46,157,79,0.42); }
.msg-link--call:hover { background: rgba(46,157,79,0.3); border-color: rgba(46,157,79,0.65); }
.footer__email a { color: var(--accent); }
.footer__email a:hover { text-decoration: underline; }
.admin-toggle[hidden] { display: none !important; }
.footer__copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; font-size: 13px; color: #8a97a6; }

/* ===== ИИ-ассистент ===== */
.ai-assistant { position: fixed; right: 22px; bottom: 22px; z-index: 9999; font-family: 'Segoe UI', Arial, sans-serif; }
.ai-toggle { display: flex; align-items: center; gap: 8px; background: var(--accent); color: var(--dark); border: none; border-radius: 50px; padding: 12px 18px; font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 8px 24px rgba(245,166,35,0.4); transition: 0.2s; }
.ai-toggle:hover { transform: translateY(-2px); background: var(--accent-dark); }
.ai-toggle__icon { font-size: 20px; }
.ai-chat { position: absolute; right: 0; bottom: 70px; width: 360px; max-width: calc(100vw - 44px); height: 520px; max-height: calc(100vh - 120px); background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.25); display: flex; flex-direction: column; overflow: hidden; animation: aiPop 0.2s ease; }
@keyframes aiPop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.ai-chat__header { background: var(--dark); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.ai-chat__header strong { display: block; font-size: 15px; }
.ai-chat__header span { font-size: 12px; color: #b7c0cc; }
.ai-chat__close { background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; padding: 0 4px; pointer-events: auto; }
.ai-chat__messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f7f9fc; }
.ai-msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.ai-msg--bot { background: #fff; border: 1px solid #e3e8ee; align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg--user { background: var(--accent); color: var(--dark); align-self: flex-end; border-bottom-right-radius: 4px; }
.ai-msg a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; }
.ai-chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border-top: 1px solid #edf1f5; background: #fff; }
.ai-chat__quick button { background: #f0f3f7; border: 1px solid #e3e8ee; border-radius: 20px; padding: 6px 12px; font-size: 12px; cursor: pointer; color: var(--dark); }
.ai-chat__quick button:hover { background: var(--accent); border-color: var(--accent); }
.ai-chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #edf1f5; background: #fff; }
.ai-chat__form input { flex: 1; border: 1px solid #d5dce4; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.ai-chat__form input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.ai-chat__form button { background: var(--accent); border: none; border-radius: 8px; width: 42px; font-size: 18px; cursor: pointer; color: var(--dark); }
.ai-chat__form button:hover { background: var(--accent-dark); }

/* Responsive */
@media (max-width: 860px) { .form-block { grid-template-columns: 1fr; } .hero__text h1 { font-size: 30px; } }

/* ===== Шапка с бургером: планшеты и телефоны ===== */
@media (max-width: 960px) {
  html { scroll-padding-top: 76px; }
  .header__inner { justify-content: flex-start; text-align: left; flex-direction: row; flex-wrap: nowrap; gap: 10px; padding: 11px 16px; }
  .logo { order: 1; flex: 1 1 auto; min-width: 0; gap: 9px; }
  .logo > div { min-width: 0; }
  .logo__title { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .logo__sub { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .btn--call { order: 2; flex: 0 0 auto; font-size: 13px; padding: 9px 12px; }
  .burger { order: 3; flex: 0 0 auto; display: flex; }

  /* Меню выпадает под шапкой на всю ширину экрана */
  .nav {
    order: 4;
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 30px rgba(0,0,0,0.4);
    padding: 4px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: 14px 20px; font-size: 16px; opacity: 1; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav a:last-child { border-bottom: none; }
  .nav a:active { background: rgba(255,255,255,0.06); }
}

/* ===== Мобильная версия ===== */
@media (max-width: 600px) {
  /* Компактная шапка */
  .logo__icon { font-size: 22px; }
  .logo__title { font-size: 15px; }
  .logo__sub { display: none; }
  .btn--call { font-size: 11.5px; padding: 7px 9px; }
  .burger { width: 40px; height: 40px; }
  
  /* Главный экран */
  .hero { padding: 40px 0; text-align: center; }
  .hero__text h1 { font-size: 26px; }
  .hero__text p { font-size: 15px; }
  .hero__actions { justify-content: center; }
  .hero__card { padding: 20px; text-align: left; }
  
  /* Секции */
  .section { padding: 40px 0; }
  .section__title { font-size: 24px; }
  
  /* ПРАЙС: ПРЕВРАЩАЕМ ТАБЛИЦУ В КАРТОЧКИ */
  .price-group { padding: 0 15px; }
  .price-group summary { 
    font-size: 16px; 
    padding: 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .price-group summary .price-count {
    margin-left: auto;
  }
  
  .table-wrap { overflow: visible; } /* Убираем горизонтальную прокрутку */
  
  .price-table { min-width: 100%; display: block; }
  
  .price-table thead { display: none; } /* Скрываем шапку таблицы */
  
  .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  
  .price-table tr {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #d5dce4;
  }
  
  .price-table tr:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  
  .price-table td {
    padding: 2px 0;
    border: none;
    text-align: left;
    font-size: 14px;
  }
  
  /* Название услуги */
  .price-table td:nth-child(1) {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
    margin-bottom: 5px;
  }
  
  /* Единица измерения и цена остаются видимыми на телефоне */
  .price-table td:nth-child(2) {
    display: block;
    width: fit-content;
    color: var(--gray);
    font-size: 13px;
    padding: 2px 0 5px;
  }
  .price-table td:nth-child(2)::before {
    content: "Единица измерения: ";
    font-weight: 600;
    color: var(--dark);
  }

  .price-table td:nth-child(3) {
    display: inline-block;
    width: auto;
    font-weight: 700;
    color: var(--accent-dark);
    background: #fff8e6;
    padding: 6px 11px;
    border-radius: 6px;
    font-size: 15px;
  }
  .price-table td:nth-child(3)::before {
    content: "Стоимость: ";
    font-weight: 600;
    color: var(--dark);
  }

  .price-note { font-size: 13px; padding: 12px; margin-top: 15px; }

  /* Форма */
  .form-block { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .form { text-align: left; }
  
  /* ИИ-Помощник */
  .ai-toggle__text { display: none; }
  .ai-toggle { padding: 14px; border-radius: 50%; }
  .ai-chat { width: calc(100vw - 20px); right: -10px; height: 60vh; bottom: 80px; }
  
  /* Админка */
  .admin-panel__content { width: 95%; margin: 10px auto; }
}

/* ===== Модальная панель админки ===== */
.admin-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--accent);
  border: 2px solid var(--accent);
  font-size: 22px;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: 0.2s;
}
.admin-toggle:hover { transform: scale(1.1); }

.admin-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-panel[hidden] {
  display: none !important;
}
.admin-panel__content {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.admin-panel__header {
  background: var(--dark);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-panel__body {
  padding: 20px;
  overflow-y: auto;
}

/* Дополнительные исправления интерфейса */
button:disabled { opacity: .65; cursor: wait; }
.ai-chat[hidden] { display: none !important; }
.admin-panel[hidden] { display: none !important; }
.price-group summary:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .price-table { min-width: 0; }
  .price-table td:nth-child(2) { display: block; }
  .admin-panel { padding: 10px; overflow-y: auto; }
  .admin-panel__content { max-height: calc(100vh - 20px); }
  .ai-assistant { right: 12px; bottom: 12px; }
  .admin-toggle { left: 12px; bottom: 12px; }
}

/* Очень узкие экраны: чуть меньше отступы в шапке */
@media (max-width: 380px) {
  .header__inner { gap: 6px; padding: 8px 10px; }
  .logo__icon { font-size: 19px; }
  .logo__title { font-size: 14px; }
  .btn--call { font-size: 10.5px; padding: 6px 8px; }
  .burger { width: 38px; height: 38px; }
}

/* ===== Отзывы на сайте ===== */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.review-card { display: flex; flex-direction: column; gap: 8px; background: var(--white); border: 1px solid #e3e8ee; border-radius: 12px; padding: 18px 20px; }
.review-card__stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }
.review-card__text { margin: 0; color: var(--gray); font-size: 15px; }
.review-card__author { margin-top: auto; font-size: 14px; font-weight: 600; }
.review-card__author span { font-weight: 400; color: var(--gray-light); }

/* Совсем узкие экраны (320px): убираем иконку-молнию, чтобы название влезло целиком */
@media (max-width: 340px) { .logo__icon { display: none; } }

/* ===== Страница «Примеры работ» ===== */
.breadcrumbs { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.breadcrumbs a { color: #96600a; }
.breadcrumbs a:hover { text-decoration: underline; }

.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { background: var(--white); border: 1px solid #d5dce4; border-radius: 20px; padding: 8px 16px; font-size: 14px; font-family: inherit; color: var(--dark); cursor: pointer; transition: 0.2s; }
.chip:hover { border-color: var(--accent); background: #fffaf0; }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--dark); font-weight: 600; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.work { position: relative; display: block; padding: 0; border: none; background: #e9eef4; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.work img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.work:hover img { transform: scale(1.04); }
.work__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; background: linear-gradient(transparent, rgba(12,17,24,0.8)); color: #fff; font-size: 13px; line-height: 1.35; text-align: left; }
.work[hidden] { display: none !important; }
.gallery-empty { margin-top: 18px; color: var(--gray); }

.gallery-cta { text-align: center; }
.gallery-cta .section__title { display: inline-block; }
.gallery-cta__lead { margin-left: auto; margin-right: auto; }
.gallery-cta .btn { margin: 4px; }
.btn--ghost-dark { border-color: var(--dark); color: var(--dark); }
.btn--ghost-dark:hover { background: var(--dark); color: var(--white); }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 10003; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8,12,18,0.94); }
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: 0.2s; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.lightbox__caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: 90%; text-align: center; color: #d3dae2; font-size: 14px; }

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .work__caption { font-size: 12px; padding: 20px 10px 8px; }
  .gallery-filters { gap: 6px; }
  .chip { padding: 7px 12px; font-size: 13px; }
  .lightbox { padding: 10px; }
  .lightbox__prev, .lightbox__next { width: 38px; height: 38px; font-size: 20px; }
  .lightbox__caption { font-size: 13px; }
}

/* ===== Быстрый переход к содержимому (клавиатура) ===== */
.skip-link { position: fixed; top: -120px; left: 12px; z-index: 10001; background: var(--accent); color: var(--dark); font-weight: 700; padding: 12px 18px; border-radius: 0 0 10px 10px; transition: top 0.15s ease; }
.skip-link:focus { top: 0; }

/* ===== Поиск по прайсу ===== */
.price-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.price-search { position: relative; display: flex; align-items: center; flex: 1 1 320px; min-width: 0; background: var(--white); border: 1px solid #d5dce4; border-radius: 10px; padding: 0 12px; transition: 0.2s; }
.price-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,166,35,0.18); }
.price-search__icon { font-size: 16px; opacity: 0.6; }
.price-search input { flex: 1; min-width: 0; border: none; outline: none; padding: 13px 8px; font-size: 15px; font-family: inherit; background: transparent; color: var(--dark); }
.price-search input::-webkit-search-cancel-button { display: none; }
.price-search__clear { border: none; background: #eef2f7; color: var(--gray); width: 26px; height: 26px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; flex: 0 0 auto; }
.price-search__clear:hover { background: var(--accent); color: var(--dark); }
.btn--outline { background: var(--white); border-color: #d5dce4; color: var(--dark); }
.btn--outline:hover { border-color: var(--accent); background: #fffaf0; }
.price-empty { margin: 0 0 18px; padding: 14px 18px; background: #fff8e6; border-left: 4px solid var(--accent); border-radius: 6px; color: var(--dark); }
.price-empty a { color: #96600a; font-weight: 600; text-decoration: underline; }
.price-group[hidden], .price-table tr[hidden] { display: none !important; }

/* Цена в таблице: тёмный янтарь вместо светло-золотого — проходит по контрасту */
.price-table td:last-child { color: #96600a; }

/* ===== FAQ ===== */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.faq__item { background: var(--white); border: 1px solid #e3e8ee; border-left: 4px solid var(--accent); border-radius: 10px; padding: 20px 22px; }
.faq__q { font-size: 17px; margin-bottom: 8px; }
.faq__a { color: var(--gray); font-size: 15px; }

/* ===== Согласие в форме ===== */
.form__consent { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.form__consent label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; color: var(--gray); }
.form__consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }
.link-like { align-self: flex-start; background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: #96600a; text-decoration: underline; cursor: pointer; }
.link-like:hover { color: var(--accent-dark); }

/* ===== Модальное окно ===== */
.modal { position: fixed; inset: 0; z-index: 10002; background: rgba(12,17,24,0.72); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none !important; }
.modal__box { background: var(--white); border-radius: 14px; width: 100%; max-width: 580px; max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: var(--dark); color: var(--white); }
.modal__head strong { font-size: 16px; }
.modal__close { background: none; border: none; color: var(--white); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.modal__body { padding: 20px; overflow-y: auto; font-size: 15px; color: var(--gray); display: grid; gap: 12px; }
.modal__body a { color: #96600a; font-weight: 600; }

@media (max-width: 600px) {
  .price-tools { gap: 10px; }
  .price-search input { font-size: 14px; padding: 12px 6px; }
  .price-tools .btn--outline { width: 100%; }
  .faq { grid-template-columns: 1fr; }
  .faq__item { padding: 16px; }
  .modal { padding: 10px; }
  .modal__body { font-size: 14px; }
}
