/*
Theme Name: BeautyTech
Author: OpenClaw
Version: 0.1.0
*/

:root{
  --bg:#ffffff;
  --text:#0b0f1a;
  --muted:#5b6475;
  --card:#f5f7fb;
  --line:#e7eaf0;
  --accent:#111827;
  --accent2:#2563eb;
  --radius:16px;
}

*{box-sizing:border-box}
html{font-size:16px}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}

.container{width:min(1120px, 100%); margin-inline:auto; padding: 0 16px;}

.header{
  position:sticky; top:0; z-index:50;
  background:#ffffff;
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.header__row{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0;}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none;}
.brand__mark{width:36px;height:36px;border-radius:12px;background:var(--accent);}
.brand__name{font-weight:700; letter-spacing:.2px}

.nav{display:none; gap:18px; align-items:center;}
.nav a{ text-decoration:none; color:#222; font-weight:600; font-size:14px; }
.nav a:hover{ color:var(--text); }

.header__cta{display:flex; gap:8px; align-items:center;}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
}
.btn--primary{background:var(--accent); border-color:var(--accent); color:#fff;}
.btn--tg{background:#fff;}
.btn--max{background:#fff;}
.btn--icon{padding:10px; width:40px;}

.hero{padding:26px 0 18px;}
.hero__card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  background:#ffffff; box-shadow:0 18px 50px rgba(0,0,0,.25); padding:24px;
}
.hero h1{margin:0 0 8px; font-size:28px; line-height:1.1; letter-spacing:-.02em}
.hero p{margin:0 0 14px; color:#3a3f55}
.hero__actions{display:flex; flex-wrap:wrap; gap:10px;}

.grid{display:grid; gap:12px;}
@media (min-width: 720px){
  .nav{display:flex;}
  .hero h1{font-size:42px;}
  .grid--3{grid-template-columns: repeat(3, 1fr);}
}

a.card{display:block;}

.card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  background:#fff;
}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px}

.section{padding:18px 0;}
.section__head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px;}
.section__title{margin:0; font-size:18px; letter-spacing:-.01em}

.footer{border-top:1px solid var(--line); padding:18px 0 90px; color:var(--muted); font-size:14px;}
.footer a{color:var(--muted)}

.mobilebar{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:rgba(255,255,255,.96);
  border-top:1px solid var(--line);
  padding:10px 12px;
}
.mobilebar__row{display:flex; gap:10px;}
.mobilebar .btn{flex:1}

/* Modal notification */
.bt-modal-overlay{
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bt-modal-overlay.bt-modal-overlay--show{display:flex;}

.bt-modal{
  width: min(520px, 92vw);
  /* ~30% of screen height on most phones */
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
}
.bt-modal__head{display:flex; align-items:flex-start; justify-content:space-between; gap:12px;}
.bt-modal__title{font-weight:900; margin:0; font-size:18px;}
.bt-modal__close{
  border: 1px solid var(--line);
  background:#fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
  cursor: pointer;
}

/* Map embeds */
.bt-map iframe{width:100% !important; display:block; height:420px !important;}

/* Simple accordion */
.accordion{border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; background:#fff;}
.acc-item + .acc-item{border-top:1px solid var(--line)}
.acc-btn{width:100%; text-align:left; padding:14px 14px; background:#fff; border:0; font-weight:800; display:flex; justify-content:space-between; gap:10px;}
.acc-panel{display:none; padding:0 14px 14px; color:var(--muted)}
.acc-item[aria-expanded="true"] .acc-panel{display:block}

.tabs{display:flex; gap:8px; margin:10px 0;}
.tab{padding:10px 12px; border-radius:12px; border:1px solid var(--line); background:#fff; font-weight:800; font-size:14px; cursor:pointer;}
.tab[aria-selected="true"]{background:var(--accent); border-color:var(--accent); color:#fff}
.price{display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px dashed var(--line)}
.price:last-child{border-bottom:0}
.price__title{font-weight:700; color:var(--text)}
.price__val{font-weight:900; white-space:nowrap}
.price__old{text-decoration:line-through; color:var(--muted); font-weight:700; margin-right:8px}

.slider{display:flex; gap:12px; overflow:auto; scroll-snap-type:x mandatory; padding-bottom:6px;}
.slide{
  flex: 0 0 320px;
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
}
@media (max-width: 420px){
  .slide{flex-basis: 88vw;}
}
.slide__img{height:140px; border-radius:14px; background:var(--card); margin-bottom:10px; overflow:hidden;}
.slide__img img{width:100%; height:100%; object-fit:cover;}
.slide__title{font-weight:900; margin:0 0 4px;}
.slide__text{
  margin:0 0 10px;
  color:var(--muted);
  font-size:14px;
  display:-webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.slide .btn{margin-top:auto;}

.gallery-grid{display:grid; gap:12px; grid-template-columns: repeat(2, 1fr);}
@media (min-width: 720px){.gallery-grid{grid-template-columns: repeat(4, 1fr);}}
.g-item{border-radius:16px; overflow:hidden; border:1px solid var(--line); background:#fff;}
.g-item img{width:100%; height:180px; object-fit:cover;}
.g-cap{padding:10px; color:var(--muted); font-size:13px;}
.filters{display:flex; gap:8px; flex-wrap:wrap; margin: 10px 0 14px;}
.filter{padding:10px 12px; border-radius:999px; border:1px solid var(--line); background:#fff; font-weight:800; font-size:13px; text-decoration:none; color:var(--muted)}
.filter[aria-current="page"]{background:var(--accent); border-color:var(--accent); color:#fff}

.ba-grid{display:grid; gap:12px; grid-template-columns:1fr;}
@media (min-width: 720px){.ba-grid{grid-template-columns: repeat(2,1fr);}}
.ba-pair{display:grid; grid-template-columns:1fr 1fr; gap:8px;}
.ba-pair img{width:100%; height:160px; object-fit:cover; border-radius:12px; border:1px solid var(--line)}
.ba-label{font-size:12px; font-weight:900; color:var(--muted); margin:6px 0 0;}

/* Specialists (About page) */
.spec__photo{border-radius:14px; overflow:hidden; margin-bottom:10px;}
.spec__photo img{width:100%; aspect-ratio: 3 / 4; object-fit: cover;}
.spec__name{font-weight:900; margin-bottom:4px;}
.spec__role{color:var(--muted); font-weight:700; margin-bottom:6px;}
.spec__exp{color:var(--muted); font-size:14px; margin-bottom:8px;}
.spec__desc{color:var(--muted); font-size:14px;}

/* Mobile: make specialist photos full-bleed inside the card (edge-to-edge) */
@media (max-width: 899px){
  /* make the whole specialists list bleed to screen edges (container has 16px side padding) */
  .spec-grid{margin-left:-16px; margin-right:-16px;}
  .spec-grid .spec-card{border-left:0; border-right:0; border-radius:0;}

  .spec__photo{margin: -14px -14px 10px; border-radius: 0;}
  .spec__photo img{width:100%; height:auto; display:block;}
}

/* ================================ */

/* Шапка: плотный белый фон, тёмные ссылки */
.header{
  background:#ffffff !important;
  border-bottom:1px solid var(--line);
}
.nav a{
  color:#222 !important;
  font-weight:600;
}
.nav a:hover{ color:#000 !important; }

/* Hero: видео не должно перекрывать карточку */
.hero{ position:relative; overflow:hidden; }
.hero__bg-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
  pointer-events:none;
}
/* Тёмная подложка над видео для контраста */
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.55));
  z-index:1;
  pointer-events:none;
}
.hero .container{ position:relative; z-index:2; }

/* Карточка с заголовком — непрозрачный фон с тенью */
.hero__card{
  background:#ffffff !important;
  border:1px solid rgba(255,255,255,.4);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  padding:24px;
}
.hero h1{ color:#0e1226; }
.hero p{ color:#3a3f55 !important; }

/* Hero overlay для видео-фона (2026-04-25) */
.hero{ position:relative; overflow:hidden; }
.hero__bg-video{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  z-index:0;
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.5));
  z-index:1;
  pointer-events:none;
}
.hero .container{ position:relative; z-index:2; }

.btn--max{ background:#fff; }

/* Logo в шапке (2026-04-26) */
.brand{display:flex; align-items:center; text-decoration:none;}
.brand__logo{
  height:48px;
  width:auto;
  display:block;
  object-fit:contain;
  max-width:none;
}
@media (max-width: 520px){
  .brand__logo{ height:40px; }
}

/* Подсказка в заголовке аккордеона прайса */
.acc-btn{display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.acc-btn__title{font-weight:700;}
.acc-btn__hint{font-size:13px; color:#6b6f7d; font-weight:500; flex:1;}
.acc-btn__plus{margin-left:auto;}
@media (max-width: 520px){
  .acc-btn{flex-wrap:wrap;}
  .acc-btn__hint{flex-basis:100%; order:3;}
}

/* Footer socials — фирменные иконки (2026-04-26) */
.footer__socials{display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-top:4px;}
.footer__socials .social{
  width:40px; height:40px;
  border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none; color:#fff;
  transition:transform .15s ease, box-shadow .15s ease;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}
.footer__socials .social:hover{transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.18);}
.footer__socials .social svg{width:22px; height:22px;}
.footer__socials .social--tg{background:#27A7E5;}
.footer__socials .social--vk{background:#0077FF;}
.footer__socials .social--max{background:radial-gradient(circle at 28% 28%, #2EC8FF 0%, #4F5EE3 55%, #8C5DC9 100%);}
.footer__socials .social--2gis{background:#1BC04A;}
.footer__socials .social--ya{background:#FC3F1D;}
.footer__socials .social--yclients{background:#FFCC00; color:#0F0F0F;}
.footer__socials .social--avito{background:#FFFFFF; border:1px solid rgba(0,0,0,.08);}

/* Иконки-картинки в social-кнопках (2026-04-26) */
.footer__socials .social img{
  width:40px; height:40px;
  border-radius:50%;
  display:block;
  object-fit:cover;
}
.footer__socials .social--yclients,
.footer__socials .social--avito{
  background:transparent !important;
  padding:0;
  border:0;
  box-shadow:none;
}
.footer__socials .social--yclients:hover img,
.footer__socials .social--avito:hover img{
  filter:brightness(1.05);
}
