/*
Theme Name: Стройкомпозит
Theme URI: https://stroykompozit.local/
Author: Стройкомпозит
Description: Тема WordPress для сайта производителя стеклопластиковой композитной арматуры (АКП). Контент редактируется через ACF.
Version: 1.2.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: stk
*/

/* ===== Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ===== Design tokens ===== */
:root{
  --background:220 25% 98%;
  --foreground:222 47% 11%;
  --card:0 0% 100%;
  --card-foreground:222 47% 11%;
  --primary:222 47% 14%;
  --primary-foreground:30 50% 97%;
  --primary-glow:222 60% 24%;
  --secondary:220 20% 94%;
  --secondary-foreground:222 47% 14%;
  --muted:220 16% 93%;
  --muted-foreground:222 15% 40%;
  --accent:22 95% 55%;
  --accent-foreground:222 47% 11%;
  --accent-glow:30 100% 60%;
  --border:220 15% 88%;
  --radius:0.75rem;
  --gradient-hero:linear-gradient(135deg,hsl(222 47% 11%) 0%,hsl(222 60% 18%) 60%,hsl(222 47% 14%) 100%);
  --gradient-accent:linear-gradient(135deg,hsl(22 95% 55%) 0%,hsl(30 100% 60%) 100%);
  --gradient-radial:radial-gradient(circle at 30% 20%,hsl(22 95% 55% / .15),transparent 60%);
  --gradient-card:linear-gradient(180deg,hsl(0 0% 100%) 0%,hsl(220 25% 97%) 100%);
  --shadow-elegant:0 20px 60px -20px hsl(222 47% 14% / .25);
  --shadow-accent:0 12px 40px -10px hsl(22 95% 55% / .45);
  --shadow-card:0 4px 20px -8px hsl(222 47% 14% / .12);
  --transition-smooth:cubic-bezier(.4,0,.2,1);
  --transition-spring:cubic-bezier(.34,1.56,.64,1);
}

/* ===== Reset ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:5rem;-webkit-text-size-adjust:100%}
body{font-family:'Inter',system-ui,sans-serif;background:hsl(var(--background));color:hsl(var(--foreground));line-height:1.5;-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
ul{list-style:none}
h1,h2,h3,h4,h5,h6{font-family:'Space Grotesk',system-ui,sans-serif;letter-spacing:-.02em;line-height:1.15}
.font-display{font-family:'Space Grotesk',system-ui,sans-serif}
.text-balance{text-wrap:balance}

/* ===== Layout ===== */
.container{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding-left:1rem;
  padding-right:1rem;
}
@media(min-width:640px){.container{padding-left:1.5rem;padding-right:1.5rem}}
@media(min-width:1024px){.container{padding-left:2rem;padding-right:2rem}}

.section{padding:5rem 0}
@media(min-width:1024px){.section{padding:7rem 0}}

/* ===== Utilities ===== */
.hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.grid{display:grid}
.flex{display:flex}
.items-center{align-items:center}
.items-start{align-items:flex-start}
.items-end{align-items:flex-end}
.items-baseline{align-items:baseline}
.justify-center{justify-content:center}
.justify-between{justify-content:space-between}
.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}
.text-center{text-align:center}
.relative{position:relative}
.sticky{position:sticky;top:0}
.z-40{z-index:40}.z-50{z-index:50}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:0 1.25rem;height:2.5rem;border-radius:.75rem;
  font-weight:600;font-size:.875rem;line-height:1;
  transition:all .3s var(--transition-smooth);
  white-space:nowrap;cursor:pointer;
}
.btn svg{width:1.125rem;height:1.125rem;flex-shrink:0}
.btn-xl{height:3.5rem;padding:0 2rem;font-size:1rem;border-radius:1rem}
.btn-lg{height:3rem;padding:0 1.5rem;font-size:.9375rem;border-radius:.875rem}
.btn-sm{height:2.25rem;padding:0 .875rem;font-size:.8125rem}
.btn-hero{background:var(--gradient-accent);color:hsl(var(--accent-foreground));box-shadow:var(--shadow-accent)}
.btn-hero:hover{transform:translateY(-2px);filter:brightness(1.05)}
.btn-accent{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}
.btn-accent:hover{background:hsl(var(--accent-glow))}
.btn-default{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}
.btn-default:hover{background:hsl(var(--primary-glow))}
.btn-outline-light{border:2px solid hsl(var(--primary-foreground)/.3);color:hsl(var(--primary-foreground));background:transparent}
.btn-outline-light:hover{background:hsl(var(--primary-foreground)/.1);border-color:hsl(var(--primary-foreground)/.6)}
.btn-telegram{background:hsl(200 100% 45%);color:#fff}
.btn-telegram:hover{background:hsl(200 100% 40%)}
.btn-full{width:100%}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:hsl(var(--background)/.85);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid hsl(var(--border)/.5);
}
.header-inner{display:flex;height:5rem;align-items:center;justify-content:space-between;gap:1rem}
.logo{display:flex;align-items:center;gap:.75rem}
.logo img{height:2.5rem;width:2.5rem;object-fit:contain}
.logo-title{font-family:'Space Grotesk';font-weight:700;font-size:1.125rem;color:hsl(var(--foreground));line-height:1.2}
.logo-sub{font-size:.75rem;color:hsl(var(--muted-foreground));line-height:1.2}

.main-nav{display:none;align-items:center;gap:2rem;font-size:.875rem;font-weight:500}
.main-nav a{color:hsl(var(--foreground)/.8);transition:color .3s var(--transition-smooth)}
.main-nav a:hover{color:hsl(var(--accent))}

.header-actions{display:flex;align-items:center;gap:.75rem}
.header-phone{display:none;align-items:center;gap:.5rem;font-size:.875rem;font-weight:600;color:hsl(var(--foreground))}
.header-phone svg{color:hsl(var(--accent));width:1rem;height:1rem}
.header-phone:hover{color:hsl(var(--accent))}

.menu-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  height:2.75rem;width:2.75rem;border-radius:.75rem;
  border:1px solid hsl(var(--border));background:hsl(var(--background));
  transition:background .3s var(--transition-smooth);
}
.menu-toggle:hover{background:hsl(var(--secondary))}
.menu-toggle svg{width:1.25rem;height:1.25rem}
.menu-toggle .icon-close{display:none}
.menu-open .menu-toggle .icon-open{display:none}
.menu-open .menu-toggle .icon-close{display:block}

.mobile-menu{
  overflow:hidden;max-height:0;opacity:0;
  background:hsl(var(--background));
  border-top:0 solid hsl(var(--border));
  transition:max-height .3s var(--transition-smooth),opacity .3s var(--transition-smooth),border-color .3s;
}
.menu-open .mobile-menu{max-height:600px;opacity:1;border-top:1px solid hsl(var(--border))}
.mobile-nav{display:flex;flex-direction:column;padding:1rem 0}
.mobile-nav a{padding:.75rem 0;text-align:left;font-size:1rem;font-weight:500;color:hsl(var(--foreground));border-bottom:1px solid hsl(var(--border)/.6);transition:color .3s}
.mobile-nav a:hover{color:hsl(var(--accent))}
.mobile-nav .btn{margin-top:1rem}
.mobile-nav .btn+.btn{margin-top:.75rem}

@media(min-width:640px){.header-phone{display:none}.btn-telegram-header{display:inline-flex}}
@media(min-width:768px){.header-phone{display:flex}}
@media(min-width:1024px){
  .main-nav{display:flex}
  .menu-toggle{display:none}
}

/* ===== Hero ===== */
.hero{position:relative;overflow:hidden;background:var(--gradient-hero);color:hsl(var(--primary-foreground))}
.hero-radial{position:absolute;inset:0;background:var(--gradient-radial);pointer-events:none}
.hero-dots{position:absolute;inset:0;opacity:.3;mix-blend-mode:overlay;
  background-image:radial-gradient(circle at 1px 1px,hsl(var(--primary-foreground)/.15) 1px,transparent 0);
  background-size:32px 32px;
}
.hero-inner{position:relative;display:grid;gap:3rem;padding:4rem 0;align-items:center}
.hero-badge{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:9999px;background:hsl(var(--accent)/.15);border:1px solid hsl(var(--accent)/.3);color:hsl(var(--accent-glow));font-size:.875rem;font-weight:500;margin-bottom:2rem}
.hero-badge-dot{height:.5rem;width:.5rem;border-radius:9999px;background:hsl(var(--accent));animation:pulse 2s ease-in-out infinite}
.hero-title{font-weight:700;font-size:2.25rem;line-height:1.05;margin-bottom:2rem}
.hero-title span{display:block;margin-top:.5rem;padding-bottom:.5rem;background:var(--gradient-accent);-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1.15}
.hero-lead{font-size:1.125rem;color:hsl(var(--primary-foreground)/.75);max-width:36rem;margin-bottom:2rem;line-height:1.6}
.hero-lead b{color:hsl(var(--accent));font-weight:600}
.hero-cta{display:flex;flex-direction:column;gap:.75rem;margin-bottom:2rem}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;padding-top:2rem;border-top:1px solid hsl(var(--primary-foreground)/.15)}
.hero-stat svg{width:1.25rem;height:1.25rem;color:hsl(var(--accent));margin-bottom:.5rem}
.hero-stat .v{font-family:'Space Grotesk';font-weight:700;font-size:1.5rem}
.hero-stat .l{font-size:.75rem;color:hsl(var(--primary-foreground)/.6)}

.hero-image-wrap{position:relative}
.hero-image-glow{position:absolute;inset:-2rem;background:hsl(var(--accent)/.2);filter:blur(60px);border-radius:9999px}
.hero-image{position:relative;border-radius:1.5rem;overflow:hidden;box-shadow:var(--shadow-elegant);border:1px solid hsl(var(--primary-foreground)/.1)}
.hero-image img{width:100%;aspect-ratio:4/3;object-fit:cover}
.hero-image-overlay{position:absolute;inset:0;background:linear-gradient(to top,hsl(var(--primary)/.6),transparent 60%)}
.hero-image-tags{position:absolute;bottom:1.5rem;left:1.5rem;right:1.5rem;display:flex;align-items:center;justify-content:space-between}
.tag-chip{padding:.5rem 1rem;border-radius:9999px;background:hsl(var(--background)/.95);backdrop-filter:blur(10px);color:hsl(var(--foreground));font-size:.875rem;font-weight:600}
.tag-price{color:hsl(var(--primary-foreground));font-size:.875rem;font-weight:500}

@media(min-width:640px){.hero-title{font-size:3rem}.hero-cta{flex-direction:row}}
@media(min-width:1024px){
  .hero-inner{grid-template-columns:1.1fr 1fr;gap:4rem;padding:7rem 0}
  .hero-title{font-size:3.75rem}
  .hero-lead{font-size:1.25rem}
}
@media(min-width:1280px){.hero-title{font-size:4.5rem}}

/* ===== Benefits / cards grid ===== */
.grid-4{display:grid;grid-template-columns:1fr;gap:1.25rem}
@media(min-width:768px){.grid-4{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.grid-4{grid-template-columns:repeat(4,1fr)}}

.card{position:relative;padding:1.75rem;border-radius:1rem;background:var(--gradient-card);border:1px solid hsl(var(--border));box-shadow:var(--shadow-card);transition:all .5s var(--transition-spring)}
.card:hover{transform:translateY(-.25rem);box-shadow:var(--shadow-elegant)}
.card-line{position:absolute;top:0;left:1.75rem;right:1.75rem;height:1px;background:linear-gradient(to right,transparent,hsl(var(--accent)/.4),transparent)}
.card-icon{height:3rem;width:3rem;border-radius:.75rem;background:hsl(var(--accent)/.1);color:hsl(var(--accent));display:inline-flex;align-items:center;justify-content:center;margin-bottom:1.25rem;transition:all .3s}
.card:hover .card-icon{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}
.card-icon svg{width:1.5rem;height:1.5rem}
.card-title{font-weight:700;font-size:1.125rem;margin-bottom:.5rem;color:hsl(var(--foreground))}
.card-desc{font-size:.875rem;color:hsl(var(--muted-foreground));line-height:1.6}

.bg-secondary-soft{background:hsl(var(--secondary)/.4)}

/* ===== Section header ===== */
.eyebrow{color:hsl(var(--accent));font-family:'Space Grotesk';font-weight:600;text-transform:uppercase;letter-spacing:.15em;font-size:.875rem;margin-bottom:1rem}
.h2{font-weight:700;font-size:1.875rem;color:hsl(var(--foreground));margin-bottom:1.25rem}
@media(min-width:640px){.h2{font-size:2.25rem}}
@media(min-width:1024px){.h2{font-size:3rem}}
.lead{font-size:1.125rem;color:hsl(var(--muted-foreground));line-height:1.6}
.section-head{max-width:48rem;margin-bottom:3.5rem}

/* ===== Products ===== */
.products-grid{display:grid;grid-template-columns:1fr;gap:1.25rem;margin-bottom:3rem}
@media(min-width:768px){.products-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1280px){.products-grid{grid-template-columns:repeat(4,1fr)}}

.product{position:relative;padding:1.75rem;border-radius:1rem;background:hsl(var(--card));border:2px solid hsl(var(--border));box-shadow:var(--shadow-card);display:flex;flex-direction:column;transition:all .5s var(--transition-spring)}
.product:hover{transform:translateY(-.5rem);box-shadow:var(--shadow-elegant);border-color:hsl(var(--accent)/.5)}
.product-popular{background:var(--gradient-hero);color:hsl(var(--primary-foreground));border-color:hsl(var(--accent));box-shadow:var(--shadow-accent)}
.product-badge{position:absolute;top:-.75rem;left:50%;transform:translateX(-50%);padding:.25rem .75rem;border-radius:9999px;background:var(--gradient-accent);color:hsl(var(--accent-foreground));font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.1em;box-shadow:var(--shadow-accent);white-space:nowrap}
.product-label{font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.15em;color:hsl(var(--muted-foreground));margin-bottom:.5rem}
.product-popular .product-label{color:hsl(var(--accent))}
.product-size{font-family:'Space Grotesk';font-weight:700;font-size:2.25rem;margin-bottom:.25rem}
.product-size b{color:hsl(var(--accent))}
.product-use{font-size:.875rem;line-height:1.6;color:hsl(var(--muted-foreground));margin:.75rem 0 1.5rem;flex:1}
.product-popular .product-use{color:hsl(var(--primary-foreground)/.75)}
.product-price{display:flex;align-items:baseline;gap:.5rem;margin-bottom:1.25rem;padding-top:1.25rem;border-top:1px solid hsl(var(--border))}
.product-popular .product-price{border-top-color:hsl(var(--primary-foreground)/.15)}
.product-price .p{font-family:'Space Grotesk';font-weight:700;font-size:1.875rem}
.product-price .u{color:hsl(var(--muted-foreground))}
.product-popular .product-price .u{color:hsl(var(--primary-foreground)/.7)}
.product .btn{width:100%;height:3rem;border-radius:.75rem}

.policy{border-radius:1rem;background:hsl(var(--secondary)/.6);border:1px solid hsl(var(--border));padding:1.75rem;display:grid;gap:2rem;align-items:center}
@media(min-width:1024px){.policy{grid-template-columns:1fr auto;padding:2.5rem}}
.policy ul{display:grid;grid-template-columns:1fr;gap:.75rem 2rem}
@media(min-width:640px){.policy ul{grid-template-columns:repeat(2,1fr)}}
.policy li{display:flex;gap:.75rem;align-items:flex-start;font-size:.875rem;color:hsl(var(--foreground)/.85)}
.policy .check{margin-top:.125rem;height:1.25rem;width:1.25rem;border-radius:9999px;background:hsl(var(--accent)/.15);color:hsl(var(--accent));display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.policy .check svg{width:.75rem;height:.75rem}

/* ===== Advantages ===== */
.advantages{position:relative;overflow:hidden;background:var(--gradient-hero);color:hsl(var(--primary-foreground))}
.advantages .radial{position:absolute;inset:0;background:var(--gradient-radial);pointer-events:none}
.advantages .blob{position:absolute;right:-10rem;top:25%;height:24rem;width:24rem;border-radius:9999px;background:hsl(var(--accent)/.1);filter:blur(80px)}
.advantages-head{position:relative;display:grid;gap:3rem;align-items:flex-end;margin-bottom:4rem}
@media(min-width:1024px){.advantages-head{grid-template-columns:auto 1fr;gap:4rem}}
.advantages-title{font-weight:700;font-size:1.875rem}
@media(min-width:640px){.advantages-title{font-size:2.25rem}}
@media(min-width:1024px){.advantages-title{font-size:3rem}}
.advantages-title span{background:var(--gradient-accent);-webkit-background-clip:text;background-clip:text;color:transparent}
.advantages-circle{display:none;position:relative;height:8rem;width:8rem;border-radius:9999px;overflow:hidden;border:2px solid hsl(var(--accent)/.3);flex-shrink:0;animation:float 6s ease-in-out infinite}
@media(min-width:1024px){.advantages-circle{display:block}}
.advantages-circle img{width:100%;height:100%;object-fit:cover}

.adv-grid{position:relative;display:grid;grid-template-columns:1fr;gap:1px;background:hsl(var(--primary-foreground)/.1);border-radius:1rem;overflow:hidden;border:1px solid hsl(var(--primary-foreground)/.1)}
@media(min-width:768px){.adv-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.adv-grid{grid-template-columns:repeat(3,1fr)}}
.adv{padding:2rem;background:hsl(var(--primary));transition:background .3s}
.adv:hover{background:hsl(var(--primary-glow))}
.adv-icon{height:3.5rem;width:3.5rem;border-radius:.75rem;background:hsl(var(--accent)/.15);color:hsl(var(--accent));display:inline-flex;align-items:center;justify-content:center;margin-bottom:1.25rem;transition:all .3s}
.adv:hover .adv-icon{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}
.adv-icon svg{width:1.75rem;height:1.75rem}
.adv h3{font-weight:700;font-size:1.25rem;margin-bottom:.75rem}
.adv p{color:hsl(var(--primary-foreground)/.7);line-height:1.6;font-size:.875rem}

/* ===== Gallery ===== */
.gallery-track-wrap{position:relative;padding:0 3rem}
@media(min-width:640px){.gallery-track-wrap{padding:0 4rem}}
.gallery-viewport{overflow:hidden}
.gallery-track{display:flex;gap:1rem;transition:transform .5s var(--transition-smooth);will-change:transform}
.gallery-slide{flex:0 0 100%}
@media(min-width:640px){.gallery-slide{flex:0 0 calc((100% - 1rem)/2)}}
@media(min-width:1024px){.gallery-slide{flex:0 0 calc((100% - 2rem)/3)}}
.gallery-slide button{display:block;width:100%;aspect-ratio:4/3;border-radius:1rem;overflow:hidden;border:1px solid hsl(var(--border));box-shadow:var(--shadow-card)}
.gallery-slide img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--transition-spring);cursor:zoom-in}
.gallery-slide button:hover img{transform:scale(1.05)}
.gallery-nav{position:absolute;top:50%;transform:translateY(-50%);height:3rem;width:3rem;border-radius:9999px;background:hsl(var(--primary));color:hsl(var(--primary-foreground));border:2px solid hsl(var(--accent));display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--shadow-accent);transition:all .3s}
.gallery-nav:hover{background:hsl(var(--accent));color:hsl(var(--accent-foreground))}
.gallery-nav:disabled{opacity:.5;cursor:not-allowed}
.gallery-nav svg{width:1.25rem;height:1.25rem}
.gallery-prev{left:0}
.gallery-next{right:0}
@media(min-width:640px){.gallery-prev{left:-.5rem}.gallery-next{right:-.5rem}}

/* ===== About ===== */
.about-grid{display:grid;gap:3rem;align-items:center}
@media(min-width:1024px){.about-grid{grid-template-columns:1fr 1fr;gap:5rem}}
.about-stats{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.about-col{display:flex;flex-direction:column;gap:1rem}
.about-col.offset{padding-top:3rem}
.stat-tile{border-radius:1rem;padding:1.5rem;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}
.stat-tile .v{font-family:'Space Grotesk';font-weight:700}
.tile-1{aspect-ratio:3/4;background:var(--gradient-hero);color:hsl(var(--primary-foreground));box-shadow:var(--shadow-elegant)}
.tile-1 .v{font-size:3.75rem;color:hsl(var(--accent))}
.tile-1 .l{color:hsl(var(--primary-foreground)/.7);font-size:.875rem;margin-top:.5rem}
.tile-2{aspect-ratio:1;background:hsl(var(--accent)/.1);border:2px solid hsl(var(--accent)/.3)}
.tile-2 .v{font-size:2.25rem;color:hsl(var(--accent))}
.tile-2 .l{color:hsl(var(--foreground)/.7);font-size:.875rem;margin-top:.25rem}
.tile-3{aspect-ratio:1;background:hsl(var(--secondary));border:1px solid hsl(var(--border))}
.tile-3 .v{font-size:2.25rem;color:hsl(var(--primary))}
.tile-3 .l{color:hsl(var(--muted-foreground));font-size:.875rem;margin-top:.25rem}
.tile-4{aspect-ratio:3/4;background:var(--gradient-accent);color:hsl(var(--accent-foreground));box-shadow:var(--shadow-accent)}
.tile-4 .v{font-size:3rem}
.tile-4 .l{font-weight:500;font-size:.875rem;margin-top:.5rem}

.about-list{display:flex;flex-direction:column;gap:1rem}
.about-list li{display:flex;gap:.75rem;align-items:flex-start;color:hsl(var(--foreground)/.85)}
.about-list svg{height:1.5rem;width:1.5rem;color:hsl(var(--accent));flex-shrink:0;margin-top:.125rem}

.certs{margin-top:5rem}
@media(min-width:1024px){.certs{margin-top:7rem}}
.certs-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:640px){.certs-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.certs-grid{grid-template-columns:repeat(3,1fr)}}
.cert{display:block;background:hsl(var(--background));border-radius:1rem;border:1px solid hsl(var(--border));box-shadow:var(--shadow-card);padding:1rem;transition:all .3s;text-align:left;width:100%}
.cert:hover{box-shadow:var(--shadow-elegant);border-color:hsl(var(--accent)/.4)}
.cert-img{aspect-ratio:3/4;background:hsl(var(--secondary)/.3);border-radius:.75rem;overflow:hidden;display:flex;align-items:center;justify-content:center}
.cert-img img{width:100%;height:100%;object-fit:contain;transition:transform .5s var(--transition-spring);cursor:zoom-in}
.cert:hover .cert-img img{transform:scale(1.05)}
.cert p{font-size:.875rem;color:hsl(var(--muted-foreground));margin-top:.75rem;line-height:1.4}

/* ===== Callback (call-to-action) ===== */
.cta-wrap{position:relative;overflow:hidden;border-radius:1.5rem;background:var(--gradient-hero);color:hsl(var(--primary-foreground));padding:2rem;box-shadow:var(--shadow-elegant)}
@media(min-width:640px){.cta-wrap{padding:3rem}}
@media(min-width:1024px){.cta-wrap{padding:4rem}}
.cta-wrap .radial{position:absolute;inset:0;background:var(--gradient-radial);pointer-events:none}
.cta-wrap .blob{position:absolute;bottom:-5rem;right:-5rem;height:18rem;width:18rem;border-radius:9999px;background:hsl(var(--accent)/.2);filter:blur(60px)}
.cta-inner{position:relative;max-width:36rem}
.cta-inner h2{font-weight:700;font-size:1.875rem;margin-bottom:1.25rem}
@media(min-width:640px){.cta-inner h2{font-size:2.25rem}}
@media(min-width:1024px){.cta-inner h2{font-size:3rem}}
.cta-inner p{color:hsl(var(--primary-foreground)/.75);font-size:1.125rem;line-height:1.6;margin-bottom:2rem}
.cta-meta{display:flex;flex-wrap:wrap;gap:1.5rem;margin-top:2rem;font-size:.875rem;color:hsl(var(--primary-foreground)/.6)}
.cta-meta div{display:flex;align-items:center;gap:.5rem}
.cta-meta svg{width:1rem;height:1rem;color:hsl(var(--accent))}

/* ===== Footer ===== */
.site-footer{background:hsl(var(--primary));color:hsl(var(--primary-foreground));padding:5rem 0 2.5rem}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2.5rem;margin-bottom:3.5rem}
@media(min-width:1024px){.footer-grid{grid-template-columns:1.2fr 1fr 1fr 1fr}}
.footer-brand p{color:hsl(var(--primary-foreground)/.65);font-size:.875rem;line-height:1.6;max-width:24rem;margin-top:1.25rem}
.footer-brand .logo-title{color:hsl(var(--primary-foreground))}
.footer-brand .logo-sub{color:hsl(var(--primary-foreground)/.6)}
.footer h4{font-family:'Space Grotesk';font-weight:700;font-size:.875rem;text-transform:uppercase;letter-spacing:.15em;color:hsl(var(--accent));margin-bottom:1.25rem}
.footer ul{display:flex;flex-direction:column;gap:.75rem;font-size:.875rem}
.footer a{display:inline-flex;align-items:flex-start;gap:.75rem;transition:color .3s}
.footer a:hover{color:hsl(var(--accent))}
.footer svg{width:1rem;height:1rem;color:hsl(var(--accent));flex-shrink:0;margin-top:.125rem}
.footer .addr{display:flex;gap:.75rem;font-size:.875rem;color:hsl(var(--primary-foreground)/.8)}
.footer .sched{font-size:.875rem;color:hsl(var(--primary-foreground)/.8);display:flex;flex-direction:column;gap:.375rem}
.footer .sched .off{color:hsl(var(--primary-foreground)/.55)}
.footer .sched .always{color:hsl(var(--accent));font-weight:500;padding-top:.5rem}
.map{margin-bottom:3rem;border-radius:1rem;overflow:hidden;border:1px solid hsl(var(--primary-foreground)/.1);box-shadow:var(--shadow-elegant)}
.map iframe{display:block;width:100%;height:400px;border:0}
.footer-bottom{padding-top:2rem;border-top:1px solid hsl(var(--primary-foreground)/.1);display:flex;flex-direction:column;gap:1rem;align-items:center;justify-content:space-between;font-size:.75rem;color:hsl(var(--primary-foreground)/.5);text-align:center}
@media(min-width:640px){.footer-bottom{flex-direction:row}}

/* ===== Floating Telegram button ===== */
.fab-tg{position:fixed;bottom:1.5rem;right:1.5rem;z-index:40;display:inline-flex;height:3.5rem;width:3.5rem;align-items:center;justify-content:center;border-radius:9999px;background:hsl(200 100% 45%);color:#fff;box-shadow:var(--shadow-elegant);transition:all .5s var(--transition-spring)}
.fab-tg:hover{background:hsl(200 100% 40%);transform:scale(1.1)}
.fab-tg svg{width:1.5rem;height:1.5rem;transform:translateX(-2px)}
.fab-tg::before{content:"";position:absolute;inset:0;border-radius:9999px;background:hsl(200 100% 45%);opacity:.3;animation:ping 2s cubic-bezier(0,0,.2,1) infinite}

/* ===== Animations ===== */
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}
@keyframes ping{75%,100%{transform:scale(2);opacity:0}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes fade-up{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes fade-in{from{opacity:0}to{opacity:1}}
.animate-fade-up{animation:fade-up .8s var(--transition-smooth) both}
.animate-fade-in{animation:fade-in 1s ease both}

.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s var(--transition-smooth),transform .7s var(--transition-smooth);will-change:opacity,transform}
.reveal.is-visible{opacity:1;transform:translateY(0)}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1!important;transform:none!important;transition:none!important}
  .animate-fade-up,.animate-fade-in{animation:none!important}
}

/* ===== Modal (lightbox) ===== */
.modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;background:hsl(0 0% 0% / .8);padding:1rem}
.modal.is-open{display:flex}
.modal-inner{position:relative;max-width:80vw;max-height:90vh}
.modal-inner img{max-width:80vw;max-height:80vh;border-radius:.75rem;background:hsl(var(--background))}
.modal-close{position:absolute;top:-3rem;right:0;height:2.5rem;width:2.5rem;border-radius:9999px;background:hsl(var(--background));color:hsl(var(--foreground));display:inline-flex;align-items:center;justify-content:center;box-shadow:var(--shadow-elegant)}
.modal-close svg{width:1.25rem;height:1.25rem}

/* ===== Form (fallback) ===== */
.stk-form{display:grid;gap:1rem;max-width:32rem}
.stk-form input,.stk-form textarea{width:100%;padding:.75rem 1rem;border-radius:.75rem;border:1px solid hsl(var(--border));background:hsl(var(--card));font:inherit;color:hsl(var(--foreground))}
.stk-form input:focus,.stk-form textarea:focus{outline:2px solid hsl(var(--accent));outline-offset:2px}
.stk-form .msg{font-size:.875rem;padding:.5rem 0}
.stk-form .msg.ok{color:hsl(var(--accent))}
.stk-form .msg.err{color:hsl(0 84% 60%)}