/* styles.css */
/* =========================
   Fonts
========================= */
@font-face {
  font-family: "Inter";
  src: url("https://cdn.price.kg/inter.php?type=regular") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("https://cdn.price.kg/inter.php?type=italic") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body{
margin:0;
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
color:var(--text);

background:
  radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(var(--primary-rgb), 0.05), transparent 40%),
    linear-gradient(180deg, #ffffff, var(--bg));

line-height:1.6;
-webkit-font-smoothing:antialiased;
text-rendering:optimizeLegibility;
}

img,
iframe {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--eyebrow);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
display:flex;
flex-direction:column;
align-items:flex-start;
gap:4px;
min-width:0;
}

.brand img{
max-height:32px;
width:auto;
}

.brand__text{
display:block;
line-height:1.2;
text-align:left;
}

.brand__text small{
font-size:12px;
color:var(--muted);
}

.brand__logo { 
width: 44px; 
height: 44px; 
border-radius: 14px; 
background:linear-gradient(135deg,var(--primary),var(--accent)); 
color:var(--surface-solid);
display: grid; 
place-items: center; 
font-weight: 800; 
box-shadow: var(--shadow); }
/* режим с текстовым логотипом */

.brand--text{
flex-direction:row;
align-items:center;
gap:10px;
}

/* текст внутри */

.brand--text .brand__text{
display:flex;
flex-direction:column;
}

.nav {
  position: fixed;
  inset: var(--header-height) 0 auto 0;
  padding: 20px 16px 28px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 16px;
}

.nav.is-open {
  display: flex;
}

.nav a {
  font-weight: 400;
}

.nav a {
  position: relative;
  text-decoration: none;
  color: inherit;
}


@media (min-width: 1024px){

  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
  }

  .nav a:hover::after {
    width: 100%;
  }

}

.nav__phone {
  color: var(--primary);
}

.burger {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
}

.burger span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lang-switch{
position:relative;
font-size:14px;
}

.lang-current{
display:inline-flex;
align-items:center;
gap:6px;
background:none;
border:none;
cursor:pointer;
font-weight:600;
}

.lang-current__icon{
transition:transform .2s ease;
}

.lang-switch.open .lang-current__icon{
transform:rotate(180deg);
}

.lang-dropdown{
position:absolute;
top:calc(100% + 6px);
left:0;
background:#fff;
border-radius:8px;
box-shadow:0 10px 25px rgba(0,0,0,.08);
padding:6px 0;
display:none;
min-width:70px;
z-index:20;
}

.lang-switch.open .lang-dropdown{
display:block;
}

.lang-dropdown a{
display:block;
padding:6px 12px;
white-space:nowrap;
}

.lang-dropdown a:hover{
background:#f3f4f6;
}

.hero {
  position: relative;
  overflow: clip;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 40px 0 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--dark);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.5)),
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.5));
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__inner {
  display: grid;
  gap: 24px;
}

.hero__content,
.hero__card {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 16px 0 14px;
  color: #fff;
  font-size: clamp(36px, 8vw, 66px);
  line-height: 0.98;
  max-width: 15ch;
}

.hero__text {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2.8vw, 20px);
  max-width: 60ch;
}

.hero__actions,
.cta-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  margin-top: 18px;
  display: grid;
  gap: 6px;
}

.hero__phone {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}

.hero__note {
  color: rgba(255, 255, 255, 0.72);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.stat {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.quote-box,
.calc-box,
.cta-box,
.lead-box,
.contacts-card,
.map-card,
.feature-card,
.review-card,
.step-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.quote-box {
  border-radius: 28px;
  padding: 22px;
}

.quote-box__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.quote-box__title {
  font-weight: 800;
  font-size: 20px;
}

.quote-box__online {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-weight: 700;
  font-size: 12px;
}

.mini-form,
.lead-form,
.calc-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field--options {
  gap: 10px;
}

.field label,
.field > span {
  font-weight: 600;
  font-size: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.field--options label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
}

.field--options input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.btn {
  border: 0;
  border-radius: 16px;
  padding: 15px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 30px var(--btnprimar);
}

.btn--primary:hover {
    background: linear-gradient(155deg, var(--primary), var(--primary-dark));
}

.btn--secondary {
   background: var(--primary-dark);
  color: var(--surface);
}

.btn--whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsappdark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn--full {
  width: 100%;
}

.grid {
  display: grid;
  gap: 18px;
}

.cards-4 {
  grid-template-columns: 1fr;
}

.cards-3 {
  grid-template-columns: 1fr;
}

.feature-card,
.step-card,
.review-card {
  padding: 22px;
  border-radius: 22px;
}

.feature-card h3,
.service-card h3,
.step-card h3,
.review-card strong {
  margin: 0 0 8px;
}

.feature-card p,
.service-card p,
.step-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
}

.icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 16px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
}

.icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.service-card {
  overflow: hidden;
  border-radius: 24px;
}

.service-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.service-card__body {
  padding: 22px;
  display: grid;
  gap: 14px;
}

.calculator {
  padding-top: 10px;
}

.calc-box {
  border-radius: 28px;
  padding: 24px;
  display: grid;
  gap: 22px;
}

.calc-box__content h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.calc-box__content p {
  margin: 0;
  color: var(--muted);
}

.calc-result {
  display: grid;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.calc-result span {
  display: block;
  color: var(--muted);
}

.calc-result strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  line-height: 1;
}

.step-card__num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 800;
  font-size: 28px;
}


/* ===== GALLERY ===== */

.gallery-slider{
position:relative;
border-radius:var(--radius);
}

.gallery-viewport{
overflow:hidden;
border-radius:var(--radius);
box-shadow:var(--shadow);
}

/* track */

.gallery-track{
display:flex;
transition:transform .45s cubic-bezier(.22,.61,.36,1);
will-change:transform;
}

/* slides */

.gallery-slide{
flex:0 0 100%;
}

.gallery-slide img{
width:100%;
height:420px;
object-fit:cover;
display:block;
}

@media (max-width:768px){

.gallery-slide img{
height:260px;
}

}

/* ===== ARROWS ===== */

.slider-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
width:48px;
height:48px;
border-radius:50%;
border:none;

background:var(--surface-solid);
color:var(--text);

box-shadow:var(--shadow);

display:flex;
align-items:center;
justify-content:center;

font-size:22px;
cursor:pointer;

opacity:0;
transition:.25s;

z-index:5;
}

.gallery-slider:hover .slider-btn{
opacity:1;
}

.slider-btn:hover{
background:var(--primary);
color:#fff;
}

.slider-btn--prev{
left:16px;
}

.slider-btn--next{
right:16px;
}

/* ===== DOTS ===== */

.gallery-dots{
display:flex;
justify-content:center;
gap:10px;
margin-top:16px;
}

.gallery-dot{
width:10px;
height:10px;
border-radius:50%;

background:var(--line);

cursor:pointer;

transition:.25s;
}

.gallery-dot:hover{
background:var(--muted);
}

.gallery-dot.active{
background:var(--primary);
transform:scale(1.25);
}


.stars {
  margin-bottom: 12px;
  color: #f59e0b;
  letter-spacing: 2px;
}

.cta {
  padding-top: 10px;
}

.cta-box {
  border-radius: 30px;
  padding: 26px;
  display: grid;
  gap: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(79, 70, 229, 0.08)), #fff;
}

.cta-box h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.lead-box {
  border-radius: 30px;
  padding: 24px;
  display: grid;
  gap: 22px;
}

.lead-box__info h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
}

.lead-box__info p {
  margin: 0 0 18px;
  color: var(--muted);
}

.lead-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.contacts-grid {
  display: grid;
  gap: 18px;
}

.contacts-card,
.map-card {
  border-radius: 24px;
  padding: 22px;
}

.contact-item {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item span {
  color: var(--muted);
}

.contact-item a,
.contact-item strong {
  font-weight: 700;
  font-size: 18px;
}

.map-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 18px;
}

/* =========================
   FOOTER
========================= */

.footer{
margin-top:80px;
background:var(--dark);
color:var(--surface);
}

.footer__main{
padding:60px 0 40px;
display:grid;
gap:40px;
}

.footer .subtitle {
    color:var(--surface);
margin-top:28px;
max-width:420px;
font-size:12px;
}
/* =========================
   BRAND
========================= */

.footer__brand-logo{
background:rgba(255,255,255,.8);
padding:6px 10px;
border-radius:10px;
display:inline-flex;
align-items:center;
}

.footer__brand-logo img{
height:28px;
}

.brand img {
max-height:32px;
width:auto;
}


.footer img{
max-height:20px;
width:auto;
}

.footer__brand-link{
display:flex;
align-items:center;
gap:12px;
margin-bottom:16px;
}

.footer__logo{
width:44px;
height:44px;
border-radius:14px;
display:flex;
align-items:center;
justify-content:center;
font-weight:800;
color:var(--surface-solid);
background:linear-gradient(135deg,var(--primary),var(--accent));
}

.footer__brand-text strong{
color:var(--surface-solid);
}

.footer__brand-text small{
color:var(--surface);
font-size:13px;
}

.footer__desc{
color:var(--surface);
margin-top:8px;
max-width:420px;
}

.footer__trust{
margin-top:16px;
display:flex;
flex-wrap:wrap;
gap:10px;
}

.footer__trust span{
padding:8px 12px;
border-radius:999px;
background:rgba(255,255,255,.06);
font-size:12px;
color:var(--surface);
}


/* =========================
   NAVIGATION
========================= */

.footer__nav{
display:grid;
gap:30px;
}

.footer__title{
color:var(--muted);
font-weight:700;
margin-bottom:16px;
display:block;
}

.footer__links{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:8px 18px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--surface);
  text-decoration: none;
  transition: .2s;
}

.footer__links a:hover{
color:var(--muted);
}

.footer__links img {
  width: 18px;
  height: 18px;
  display: block;

  filter: brightness(0) saturate(100%) invert(70%);
  transition: transform .2s ease, filter .2s ease;
}

.footer__links a:hover img {
  transform: translateX(4px);
  filter: brightness(0) saturate(100%) invert(85%);
}

.footer__links a:hover {
  color: var(--muted);
}

.footer__links a:hover img {
  filter: brightness(0) saturate(100%) invert(85%);
}
/* =========================
   CONTACTS
========================= */

.footer__contacts{
display:flex;
flex-direction:column;
gap:10px;
}

.footer__contact{
display:flex;
align-items:center;
gap:10px;
color:var(--surface);
text-decoration:none;
transition:.2s;
}

.footer__contact svg{
flex-shrink:0;
opacity:.9;
}

.footer__contact:hover{
color:var(--muted);
}

.footer__contact img {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;

  filter: brightness(0) saturate(100%) invert(70%);
  opacity: 0.9;

  transition: transform .25s cubic-bezier(.4,0,.2,1), filter .2s ease, opacity .2s ease;
}


.footer__contact a:hover {
    color: var(--muted);
}

/* =========================
   BOTTOM
========================= */

.footer__bottom{
border-top:1px solid rgba(255,255,255,.08);
padding:16px 0;
margin-top:10px;
}

.footer__bottom-inner{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:10px;
font-size:14px;
color:var(--surface);
}

.footer__powered a{
color:var(--primary);
font-weight:600;
text-decoration:none;
}

.footer__powered a:hover{
color:var(--primary-dark);
}


/* =========================
   RESPONSIVE
========================= */

@media(min-width:768px){

.footer__main{
grid-template-columns:1.2fr 1fr;
}

.footer__links{
grid-template-columns:1fr;
}

}

.footer__nav{
display:grid;
gap:30px;
}

@media(min-width:768px){

.footer__nav{
grid-template-columns:1fr 1fr;
align-items:start;
}

}


.floating-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  gap: 12px;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.floating-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.floating-btn--call {
background:linear-gradient(135deg,var(--primary),var(--accent)); 
}

.floating-btn--wa {
  background: linear-gradient(135deg, #25d366, #16a34a);
}

.floating-actions {
  animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

/* Hover — дорогой lift */
.floating-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(120%);
  min-width: min(90vw, 360px);
  padding: 14px 16px;
  background: var(--dark);
  color: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-align: center;
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .section {
    padding: 92px 0;
  }

  .hero {
    padding: 56px 0 92px;
  }

  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-result {
    grid-template-columns: 1fr auto;
  }

  .cta-box,
  .lead-box,
  .contacts-grid,
  .calc-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }

  .nav {
    position: static;
    inset: auto;
    padding: 0;
    background: transparent;
    border: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 420px);
    align-items: center;
    gap: 32px;
  }

  .cards-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1366px) {
  .section {
    padding: 110px 0;
  }

  .hero {
    padding: 72px 0 110px;
  }

  .cards-4 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .feature-card {
    min-height: 100%;
  }

  .workflow .cards-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .cards-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1366px) {
  .cards-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.floating-btn svg{
width:26px;
height:26px;
fill:white;
}

.floating-btn{
display:flex;
align-items:center;
justify-content:center;
}

@media (min-width:1024px){

.contacts-grid{
display:grid;
grid-template-columns:1fr 1fr;
align-items:stretch;
}

.contacts-card,
.map-card{
height:100%;
}

.map-card iframe{
height:100%;
min-height:100%;
}

}


/* SLIDER */

.services-slider{
position:relative;
padding:0 12px;
}

.services-viewport{
overflow:hidden;
padding-right:12px;
}

.services-track{
display:flex;
gap:24px;
transition:transform .45s ease;
}

/* карточки */

.service-card{
flex:0 0 calc(100% - 24px);
background:var(--surface-solid);
border-radius:var(--radius);
box-shadow:var(--card-shadow);
overflow:hidden;
border:none;
}

@media (min-width:1024px){
.service-card{
flex:0 0 calc(33.333% - 16px);
}
}

/* стрелки */

.services-btn{
position:absolute;
top:50%;
transform:translateY(-50%);
width:46px;
height:46px;
border-radius:50%;
border:none;
background:var(--surface-solid);
box-shadow:var(--shadow);
display:flex;
align-items:center;
justify-content:center;
font-size:22px;
cursor:pointer;
z-index:20;
}

.services-btn.prev{
left:0;
}

.services-btn.next{
right:0;
}




.switch{
display:flex;
align-items:center;
gap:12px;
cursor:pointer;
}

.switch input{
display:none;
}

.slider{
width:44px;
height:24px;
background:#e5e7eb;
border-radius:20px;
position:relative;
transition:.3s;
}

.slider::before{
content:"";
position:absolute;
width:18px;
height:18px;
background:white;
border-radius:50%;
top:3px;
left:3px;
transition:.3s;
box-shadow:0 2px 6px rgba(0,0,0,.2);
}

.switch input:checked + .slider{
background:#2563eb;
}

.switch input:checked + .slider::before{
transform:translateX(20px);
}

.switch-text{
color:#475569;
font-weight:500;
}


.field--options{
display:flex;
flex-direction:column;
gap:14px;
}

@media(min-width:1024px){

.field--options{
flex-direction:row;
align-items:center;
flex-wrap:wrap;
gap:30px;
}

.switch{
min-width:220px;
}

}

.field--options{
display:flex;
flex-wrap:wrap;
gap:14px 30px;
}

.field--options > span{
width:100%;
font-weight:600;
}

/* FAQ */

.faq-list{
max-width:800px;
margin:0 auto;
display:flex;
flex-direction:column;
gap:14px;
}

.faq-item{
background:var(--surface-solid);
border:1px solid var(--line);
border-radius:var(--radius-md);
overflow:hidden;
box-shadow:var(--shadow);
}

.faq-question{
width:100%;
padding:20px 22px;
display:flex;
justify-content:space-between;
align-items:center;
font-weight:600;
font-size:16px;
background:none;
border:none;
cursor:pointer;
color:var(--text);
}

.faq-item.active .faq-answer{
max-height:200px;
}

.faq-icon{
font-size:20px;
color:var(--primary);
transition:.25s;
}

.faq-answer{
max-height:0;
overflow:hidden;
transition:max-height .35s ease;
padding:0 22px;
}

.faq-answer p{
color:var(--muted);
margin:0;
padding-bottom:18px;
}



.faq-item.active .faq-icon{
transform:rotate(45deg);
}


.review-card__top{
display:flex;
align-items:center;
gap:14px;
margin-bottom:14px;
}

.review-avatar{
width:56px;
height:56px;
border-radius:50%;
object-fit:cover;
box-shadow:var(--shadow);
}

.review-meta{
display:flex;
flex-direction:column;
gap:4px;
}

.review-meta strong{
font-size:16px;
color:var(--text);
}


/* PRICING */

.pricing-table{
border-radius:var(--radius);
overflow:hidden;
border:1px solid var(--line);
background:var(--surface-solid);
box-shadow:var(--shadow);
}

.pricing-row{
display:grid;
grid-template-columns:2fr 3fr 1fr;
gap:16px;
padding:18px 22px;
align-items:center;
border-bottom:1px solid var(--line);
}

.pricing-row:last-child{
border-bottom:none;
}

.pricing-head{
font-weight:700;
background:var(--surface);
color:var(--text);
}

.pricing-service{
font-weight:600;
color:var(--text);
}

.pricing-desc{
color:var(--muted);
}

.pricing-price{
font-weight:700;
color:var(--primary);
white-space:nowrap;
}

/* MOBILE */

@media(max-width:768px){

.pricing-row{
grid-template-columns:1fr;
gap:6px;
padding:16px;
}

.pricing-head{
display:none;
}

.pricing-service{
font-size:16px;
}

.pricing-desc{
font-size:14px;
}

.pricing-price{
font-size:15px;
}

}



.modal{
position:fixed;
inset:0;
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.modal.open{
display:flex;
}

.modal__overlay{
position:absolute;
inset:0;
background:rgba(0,0,0,.5);
backdrop-filter:blur(4px);
}

.modal__content{
position:relative;
background:#fff;
border-radius:16px;
padding:28px 24px;
max-width:420px;
width:90%;
text-align:center;
box-shadow:0 20px 60px rgba(0,0,0,.2);
animation:modalFade .25s ease;
}

@keyframes modalFade{
from{opacity:0; transform:translateY(20px);}
to{opacity:1; transform:translateY(0);}
}

.modal__icon{
width:60px;
height:60px;
margin:0 auto 14px;
border-radius:50%;
background:linear-gradient(135deg,var(--primary),var(--accent));
color:#fff;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
font-weight:700;
}

.modal__title{
font-size:20px;
margin-bottom:8px;
}

.modal__text{
font-size:14px;
color:var(--muted);
}

.modal__close{
position:absolute;
top:10px;
right:12px;
border:none;
background:none;
font-size:22px;
cursor:pointer;
}


.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal-box h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.modal-content p,
.modal-content li {
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

.modal-content ul {
  padding-left: 20px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.form-policy-note {
    font-size:12px;
}

.form-policy-note a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.25);
    text-underline-offset: 2px;
    transition: 0.2s;
}

.form-policy-note a:hover {
    text-decoration-color: rgba(0,0,0,0.6);
}


.footer-policy-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255,255,255,0.3); /* если тёмный футер */
    text-underline-offset: 3px;
    transition: 0.2s;
}

.footer-policy-link:hover {
    text-decoration-color: rgba(255,255,255,0.8);
}


.about__grid{
display:grid;
gap:40px;
}

.about__content{
display:flex;
flex-direction:column;
gap:16px;
}

.about__list{
display:grid;
gap:8px;
color:var(--muted);
padding:0;
margin:0;
list-style:none;
}

.about__image img{
width:100%;
border-radius:var(--radius);
box-shadow:var(--shadow-lg);
}

.team{
margin-top:60px;
}

.team__grid{
display:grid;
gap:24px;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.team-card{
background:var(--surface-solid);
border-radius:var(--radius);
box-shadow:var(--shadow);
padding:20px;
text-align:center;
transition:.3s;
}

.team-card:hover{
transform:translateY(-6px);
}

.team-card img{
width:90px;
height:90px;
border-radius:50%;
object-fit:cover;
margin:0 auto 12px;
}

.team-card h4{
margin:0;
}

.team-card span{
color:var(--muted);
font-size:14px;
}

@media(min-width:1024px){
.about__grid{
grid-template-columns:1fr 1fr;
align-items:center;
}
}


.map-card{
  min-height: 320px;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.js-map{
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.js-map iframe{
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 320px;
  border: 0;
}

.map-placeholder,
.map-fallback{
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #666;
  font-size: 14px;
  text-align: center;
  padding: 20px;
}