/*
Theme Name:   AZfin
Theme URI:    https://azfin.sk
Author:       AZfin.sk
Author URI:   https://azfin.sk
Description:  Firemná WordPress šablóna pre AZfin.sk – nezávislé finančné sprostredkovanie (pôžičky, hypotéky, refinancovanie, poistenie). Obsahuje interaktívnu kalkulačku splátky v hero sekcii.
Version:      2.3.0
Requires at least: 6.0
Requires PHP: 7.4
License:      Proprietary
Text Domain:  azfin
*/

/* =========================================================
   TOKENS
   ========================================================= */
:root{
  --navy:        #0A2647;
  --blue-deep:   #12406E;
  --blue-mid:    #1C5C94;
  --blue-accent: #2E86C1;
  --ice:         #EEF4FA;
  --ice-2:       #E2ECF6;
  --white:       #FFFFFF;
  --gold:        #C9A227;
  --gold-soft:   #EADFB4;
  --ink:         #0F1B2D;
  --ink-soft:    #4C5C6E;
  --line:        #D6E1EC;
  --radius-sm: 6px;
  --radius-md: 14px;
  --shadow: 0 20px 40px -20px rgba(10,38,71,0.35);
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'IBM Plex Sans', sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,.display{
  font-family:'Fraunces', serif;
  font-weight:600;
  letter-spacing:-0.01em;
  margin:0;
}
.mono{ font-family:'IBM Plex Mono', monospace; }
a{color:inherit;}
img{max-width:100%;display:block;}
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 32px;
}
section{ position:relative; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:2px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}

/* ---------- NAV ---------- */
header.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 32px;
  max-width:1180px; margin:0 auto;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family:'Fraunces', serif; font-weight:700; font-size:22px;
  color:var(--navy);
  text-decoration:none;
}
.logo .mark{
  width:34px;height:34px;border-radius:9px;
  background:linear-gradient(155deg, var(--blue-accent), var(--navy));
  display:flex;align-items:center;justify-content:center;
  color:var(--white); font-family:'IBM Plex Mono',monospace; font-weight:600; font-size:15px;
}
nav.links ul{ display:flex; gap:34px; list-style:none; margin:0; padding:0; }
nav.links li{ position:relative; }
nav.links ul ul.sub-menu{
  display:none; position:absolute; top:100%; left:0; margin-top:14px;
  background:var(--white); border:1px solid var(--line); border-radius:10px;
  box-shadow:var(--shadow); padding:8px; min-width:210px; flex-direction:column; gap:0;
  z-index:60;
}
nav.links li.sub-menu-open > ul.sub-menu{ display:flex; }
nav.links ul ul.sub-menu li{ width:100%; }
nav.links ul ul.sub-menu a{
  display:block; padding:9px 12px; border-radius:6px; font-size:14px; white-space:nowrap;
}
nav.links ul ul.sub-menu a:hover{ background:var(--ice); color:var(--navy); }
nav.links ul ul.sub-menu a::after{ display:none; }
nav.links a{
  text-decoration:none; font-size:15px; font-weight:500;
  color:var(--ink-soft);
  position:relative;
  padding:4px 0;
  cursor:pointer;
}
nav.links a:hover{ color:var(--navy); }
nav.links a::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px;
  background:var(--gold); transition:width .25s ease;
}
nav.links a:hover::after{ width:100%; }
.nav-cta{ display:flex; align-items:center; gap:18px; }

/* Hamburger tlačidlo - viditeľné iba na tabletoch/mobiloch */
.menu-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; padding:0; border:1px solid var(--line); border-radius:8px;
  background:var(--white); cursor:pointer; flex-shrink:0;
}
.menu-toggle-bar{ width:18px; height:2px; background:var(--navy); margin:0 auto; transition:transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2){ opacity:0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
.screen-reader-text{
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap;
}
.phone{ font-size:14px; color:var(--navy); font-weight:600; text-decoration:none; display:flex; gap:6px; align-items:center;}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 24px; border-radius:var(--radius-sm);
  font-weight:600; font-size:15px; text-decoration:none;
  border:1px solid transparent; cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary{ background:var(--navy); color:var(--white); }
.btn-primary:hover{ background:var(--blue-deep); transform:translateY(-1px); box-shadow:0 10px 20px -8px rgba(10,38,71,0.5);}
.btn-gold{ background:var(--gold); color:var(--navy); }
.btn-gold:hover{ transform:translateY(-1px); box-shadow:0 10px 22px -8px rgba(201,162,39,0.55); }
.btn-ghost{ background:transparent; color:var(--navy); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--blue-accent); color:var(--blue-accent); }

/* ---------- HERO ---------- */
.hero{
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(46,134,193,0.25), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--blue-deep) 100%);
  color:var(--white);
  padding:88px 0 110px;
  overflow:hidden;
}
.hero-grid{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--gold-soft);
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.16);
  padding:7px 14px; border-radius:999px;
  margin-bottom:22px;
}
.eyebrow .dot{ width:6px;height:6px;border-radius:50%;background:var(--gold); }
.hero h1{
  font-size:52px; line-height:1.06; color:var(--white);
  max-width:560px;
}
.hero h1 em{ font-style:normal; color:var(--gold-soft); }
.hero p.lead{
  margin-top:22px; font-size:17px; line-height:1.6; color:#C7D6E8; max-width:480px;
}
.hero-actions{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; }
.hero-trust{
  display:flex; gap:28px; margin-top:52px; flex-wrap:wrap;
}
.hero-trust .stat b{
  display:block; font-family:'Fraunces', serif; font-size:26px; color:var(--white);
}
.hero-trust .stat span{ font-size:13px; color:#9FB4CC; }

/* Podstránky (page.php) - obsah v modrej hero časti */
.page-hero{ padding:80px 0 100px; }
.page-hero h1{ font-size:42px; max-width:700px; margin-top:18px; }
.page-hero-content{
  margin-top:28px; color:#C7D6E8; font-size:16px; line-height:1.75;
}
/* Predvolene je každý priamy prvok obsahu obmedzený na čitateľnú šírku textu... */
.page-hero-content > *{ max-width:700px; }
/* ...okrem mriežok kariet (vkladaných napr. cez shortcode), tie majú využiť celú šírku stránky */
.page-hero-content .location-grid,
.page-hero-content .service-grid,
.page-hero-content .news-grid{
  max-width:none;
}
.page-hero-content p{ margin:0 0 18px; }
.page-hero-content ul, .page-hero-content ol{ padding-left:20px; margin:0 0 18px; }
.page-hero-content li{ margin-bottom:8px; }
.page-hero-content h2, .page-hero-content h3{
  font-family:'Fraunces', serif; color:var(--white); margin:32px 0 14px; font-size:24px;
}
.page-hero-content a{ color:var(--gold-soft); text-decoration:underline; }
.page-hero-content a:hover{ color:var(--gold); }
.page-hero-content .form-grid{ margin-top:12px; max-width:480px; }
.page-hero-content .services-list{ padding-left:0; }

/* Jednoduchý zoznam služieb s odkazmi — shortcode [azfin_services] */
.services-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.services-list li{ border-bottom:1px solid rgba(255,255,255,0.12); }
.services-list a{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:14px 4px; font-size:15px; font-weight:500; color:inherit; text-decoration:none;
}
.services-list a:hover{ color:var(--gold-soft); }
.services-list a::after{ content:'→'; opacity:.6; flex-shrink:0; }
/* Na svetlom pozadí (mimo modrej hero plochy) tmavšie farby a čiara */
.page-content-wrap .services-list li,
.wrap > .services-list li{ border-bottom-color:var(--line); }
.page-content-wrap .services-list a,
.wrap > .services-list a{ color:var(--navy); }
.page-content-wrap .services-list a:hover,
.wrap > .services-list a:hover{ color:var(--blue-accent); }

/* Calculator card - signature element */
.calc-card{
  background:var(--white);
  color:var(--ink);
  border-radius:24px;
  padding:300px 32px 30px;
  box-shadow:var(--shadow);
  position:relative;
  border:1px solid rgba(255,255,255,0.5);
  overflow:hidden;
}

/* základný obrázok */
.calc-card::after{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:300px;
  background:
    linear-gradient(to bottom, transparent 70%, var(--white)),
    url("assets/img/director.jpg") top center / cover no-repeat;
  opacity:1;
  transition:opacity .5s ease;
  z-index:0;
}

/* hover obrázok */
.calc-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:300px;
  background:
    linear-gradient(to bottom, transparent 70%, var(--white)),
    url("assets/img/director-hover.jpg") top center / cover no-repeat;
  opacity:0;
  transition:opacity .5s ease;
  z-index:1;
}
.calc-card:active::before{
    background:
      linear-gradient(to bottom, transparent 70%, var(--white)),
      url("assets/img/director-click.jpg") top center / cover no-repeat;
    opacity:1;
    transition:opacity .5s ease;
}

/* výmena obrázkov */
.calc-card:hover::after{
  opacity:0;
}

.calc-card:hover::before{
  opacity:1;
}

/* obsah */
.calc-card > *{
  position:relative;
  z-index:2;
}
.calc-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px;}
.calc-head h3{ font-size:15px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); font-family:'IBM Plex Sans'; font-weight:600;}
.calc-badge{ font-size:11px; background:var(--ice-2); color:var(--blue-mid); padding:4px 10px; border-radius:999px; font-weight:600;}
.calc-sub{ font-size:13px; color:var(--ink-soft); margin-bottom:22px; }
.checklist{ list-style:none; margin:0 0 24px; padding:0; display:flex; flex-direction:column; gap:12px; }
.checklist li{ display:flex; align-items:center; gap:12px; }
.checklist-icon{
  width:34px; height:34px; border-radius:9px; background:var(--ice-2);
  display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0;
}
.checklist-text{ font-size:14.5px; font-weight:500; color:var(--navy); }
.calc-result{
  display:flex; justify-content:space-between; align-items:center;
  background:var(--ice); border-radius:12px; padding:16px 18px; margin-top:8px;
}
.calc-result .label{ font-size:13px; color:var(--ink-soft); }
.calc-result .value{ font-family:'IBM Plex Mono', monospace; font-size:22px; font-weight:600; color:var(--navy); }
.calc-note{ font-size:11.5px; color:var(--ink-soft); margin-top:12px; line-height:1.5;}

/* ---------- TRUST BAR ---------- */
.trustbar{ background:var(--ice); padding:26px 0; border-bottom:1px solid var(--line); }
.trustbar .wrap{ display:flex; align-items:center; gap:36px; flex-wrap:wrap; }
.trustbar .label{ font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-soft); font-weight:600; }
.trustbar .partners{ display:flex; gap:34px; flex-wrap:wrap; align-items:center; }
.partner{
  font-family:'IBM Plex Mono', monospace; font-weight:500; color:var(--blue-mid); font-size:13px;
}

/* ---------- SECTION HEADS ---------- */
.section-head{ max-width:620px; margin-bottom:52px; }
.section-head .eyebrow-lite{
  font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--blue-accent);
  margin-bottom:14px; display:block;
}
.section-head h2{ font-size:34px; color:var(--navy); line-height:1.18; }
.section-head p{ margin-top:16px; color:var(--ink-soft); font-size:16px; line-height:1.65; }

/* ---------- SERVICES ---------- */
.services{ padding:100px 0; }
.service-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.service-card{
  border:1px solid var(--line); border-radius:var(--radius-md); padding:30px 24px;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  background:var(--white);
}
.service-card:hover{
  transform:translateY(-4px); box-shadow:0 24px 40px -24px rgba(10,38,71,0.3); border-color:transparent;
}
.service-icon{
  width:46px;height:46px;border-radius:12px; background:var(--ice-2);
  display:flex;align-items:center;justify-content:center; margin-bottom:20px;
  color:var(--navy); font-size:20px;
}
.service-card h3{ font-size:19px; color:var(--navy); margin-bottom:10px; }
.service-card p{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin-bottom:16px;}
.service-card .rate{ font-family:'IBM Plex Mono', monospace; font-size:13px; color:var(--blue-accent); font-weight:600;}
.service-card a.more{
  font-size:13.5px; font-weight:600; color:var(--navy); text-decoration:none; display:inline-flex; gap:6px; align-items:center; margin-top:14px;
}

/* ---------- PROCESS ---------- */
.process{ background:var(--navy); color:var(--white); padding:100px 0; }
.process .section-head h2{ color:var(--white); }
.process .section-head p{ color:#B7C7DA; }
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.steps::before{
  content:''; position:absolute; top:23px; left:6%; right:6%; height:1px;
  background:rgba(255,255,255,0.18);
}
.step{ position:relative; padding-right:20px; }
.step .num{
  width:46px;height:46px; border-radius:50%; background:var(--blue-deep); border:1px solid rgba(255,255,255,0.25);
  display:flex; align-items:center; justify-content:center; font-family:'IBM Plex Mono',monospace; font-weight:600;
  color:var(--gold-soft); margin-bottom:24px; position:relative; z-index:2;
}
.step h3{ font-size:17px; margin-bottom:8px; color:var(--white); font-family:'IBM Plex Sans'; font-weight:600;}
.step p{ font-size:14px; color:#AFC1D6; line-height:1.6; }

/* ---------- STATS / WHY ---------- */
.why{ padding:100px 0; background:var(--ice); }
.why-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.why-list{ display:flex; flex-direction:column; gap:22px; }
.why-item{ display:flex; gap:16px; align-items:flex-start; }
.why-item .check{
  width:26px;height:26px;border-radius:50%; background:var(--navy); color:var(--white);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:13px; margin-top:2px;
}
.why-item h4{ font-size:16px; color:var(--navy); margin-bottom:4px; font-family:'IBM Plex Sans'; font-weight:600;}
.why-item p{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin:0;}
.stat-panel{
  background:var(--white); border-radius:var(--radius-md); padding:40px; box-shadow:var(--shadow);
  display:grid; grid-template-columns:1fr 1fr; gap:30px;
}
.stat-block b{ display:block; font-family:'Fraunces', serif; font-size:38px; color:var(--navy); }
.stat-block span{ font-size:13px; color:var(--ink-soft); }
.stat-block .gold{ color:var(--gold); }

/* ---------- LOCATIONS (PREVÁDZKY) ---------- */
.locations{ padding:100px 0; }
.location-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:22px; }
.location-card{
  border:1px solid var(--line); border-radius:var(--radius-md); padding:30px 24px;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  background:var(--white);
}
.location-card:hover{
  transform:translateY(-4px); box-shadow:0 24px 40px -24px rgba(10,38,71,0.3); border-color:transparent;
}
.location-icon{
  width:46px;height:46px;border-radius:12px; background:var(--ice-2);
  display:flex;align-items:center;justify-content:center; margin-bottom:20px; font-size:20px;
}
.location-card h3{ font-size:19px; color:var(--navy); margin-bottom:10px; }
.location-address{ font-size:14.5px; color:var(--ink-soft); line-height:1.6; margin:0 0 6px; }
.location-note{ font-size:13.5px; color:var(--ink-soft); line-height:1.6; margin:0 0 10px; }

/* ---------- NEWS (AKTUALITY) ---------- */
.news{ padding:100px 0; background:var(--ice); }
.news-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:22px; }
.news-card{
  display:block; text-decoration:none; border:1px solid var(--line); border-radius:var(--radius-md);
  overflow:hidden; background:var(--white);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.news-card:hover{
  transform:translateY(-4px); box-shadow:0 24px 40px -24px rgba(10,38,71,0.3); border-color:transparent;
}
.news-thumb{ width:100%; height:170px; overflow:hidden; background:var(--ice-2); }
.news-thumb img{ width:100%; height:100%; object-fit:cover; }
.news-card .news-date{
  font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--blue-accent);
  padding:20px 24px 0;
}
.news-card h3{ font-size:18px; color:var(--navy); margin:8px 24px 10px; }
.news-card p{ font-size:14px; color:var(--ink-soft); line-height:1.6; margin:0 24px 16px; }
.news-card .more{ display:block; font-size:13.5px; font-weight:600; color:var(--navy); margin:0 24px 22px; }
.news-more-link{ text-align:center; margin-top:40px; }
.news-pagination{ margin-top:50px; display:flex; justify-content:center; gap:14px; }
.news-pagination .page-numbers{
  display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px;
  padding:0 12px; border-radius:8px; border:1px solid var(--line); text-decoration:none;
  color:var(--navy); font-size:14px; font-weight:600;
}
.news-pagination .page-numbers.current{ background:var(--navy); color:var(--white); border-color:var(--navy); }
.news-pagination .page-numbers:hover:not(.current){ border-color:var(--blue-accent); color:var(--blue-accent); }

/* ---------- TESTIMONIAL ---------- */
.testimonial{ padding:90px 0; }
.test-card{
  max-width:760px; margin:0 auto; text-align:center;
}
.stars{ color:var(--gold); font-size:20px; letter-spacing:3px; margin-bottom:26px; }
.test-card blockquote{
  font-family:'Fraunces', serif; font-size:26px; line-height:1.5; color:var(--navy); margin:0 0 28px;
  font-weight:500;
}
.test-author{ font-size:14px; color:var(--ink-soft); font-weight:600; }
.test-author span{ font-weight:400; color:var(--ink-soft); }

/* ---------- CTA / CONTACT ---------- */
.contact{ padding:100px 0 110px; background:linear-gradient(180deg, var(--white), var(--ice)); }
.contact-panel{
  background:var(--navy); border-radius:22px; padding:56px; color:var(--white);
  display:grid; grid-template-columns:1fr 1fr; gap:50px;
  box-shadow:var(--shadow);
}
.contact-panel h2{ color:var(--white); font-size:30px; line-height:1.2; margin-bottom:16px;}
.contact-panel p{ color:#B7C7DA; font-size:15px; line-height:1.65; max-width:380px;}
.contact-points{ margin-top:30px; display:flex; flex-direction:column; gap:14px;}
.contact-points div{ display:flex; gap:10px; font-size:14px; color:#D6E2EE; align-items:center;}
.form-grid{ display:flex; flex-direction:column; gap:14px; }
.form-grid input, .form-grid select{
  width:100%; padding:13px 16px; border-radius:8px; border:1px solid rgba(255,255,255,0.2);
  background:rgba(255,255,255,0.06); color:var(--white); font-family:'IBM Plex Sans'; font-size:14.5px;
}
.form-grid select{ cursor:pointer; }
/* Rozbaľovací zoznam (<option>) kreslí prehliadač/OS zvyčajne so svetlým
   pozadím bez ohľadu na štýl <select> — text preto musí byť tmavý,
   inak zostane na bielom pozadí neviditeľný. Platí jednotne všade,
   kde sa formulár používa (hlavná stránka aj stránka "Napíšte nám"). */
.form-grid select option{
  color:var(--ink); background:var(--white);
}
.form-grid input::placeholder{ color:#9FB0C4; }
.form-grid label{ font-size:12.5px; color:#9FB0C4; margin-bottom:-8px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.consent{ font-size:11.5px; color:#8FA3BA; line-height:1.5; margin-top:2px; }
.form-success{ background:rgba(46,134,193,0.15); border:1px solid rgba(46,134,193,0.4); color:#fff; padding:14px 16px; border-radius:8px; font-size:14px; margin-bottom:4px; }

/* ---------- FOOTER ---------- */
footer.site-footer{ background:var(--navy); border-top:1px solid rgba(255,255,255,0.08); padding:60px 0 30px; color:#9FB4CC; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.08); }
.footer-grid h4{ color:var(--white); font-size:14px; margin-bottom:16px; font-family:'IBM Plex Sans'; font-weight:600; text-transform:uppercase; letter-spacing:.04em;}
.footer-grid ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.footer-grid a{ text-decoration:none; color:#9FB4CC; font-size:14px; }
.footer-grid a:hover{ color:var(--gold-soft); }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:26px; font-size:12.5px; flex-wrap:wrap; gap:10px;}

/* ---------- GENERIC PAGE CONTENT (page.php / single.php) ---------- */
.page-content-wrap{ padding:80px 0; max-width:760px; }
.page-content-wrap h1{ font-size:38px; color:var(--navy); margin-bottom:24px; }
.page-content-wrap p{ font-size:16px; line-height:1.7; color:var(--ink-soft); margin-bottom:18px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px){
  .hero-grid, .why-grid{ grid-template-columns:1fr; }
  .service-grid{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:repeat(2,1fr); gap:36px; }
  .steps::before{ display:none; }
  .contact-panel{ grid-template-columns:1fr; padding:36px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }

  .menu-toggle{ display:flex; }

  nav.links{
    display:block; position:absolute; top:100%; left:0; right:0;
    background:var(--white); border-bottom:1px solid var(--line);
    box-shadow:0 24px 40px -24px rgba(10,38,71,0.3);
    max-height:0; overflow:hidden; opacity:0;
    transition:max-height .3s ease, opacity .25s ease;
  }
  nav.links.is-open{ max-height:70vh; overflow-y:auto; opacity:1; }
  nav.links ul{ flex-direction:column; gap:0; padding:10px 24px 20px; }
  nav.links li{ width:100%; }
  nav.links a{ display:block; padding:13px 0; font-size:16px; }
  nav.links a::after{ display:none; }

  /* Podmenu je na tabletoch/mobiloch súčasťou toku (nie prekrytie) */
  nav.links ul ul.sub-menu{
    position:static; box-shadow:none; border:none; margin:0 0 6px 0;
    padding:0 0 4px 16px; min-width:0; background:var(--ice); border-radius:8px;
  }
}
@media (max-width:600px){
  .hero h1{ font-size:38px; }
  .wrap{ padding:0 20px; }
  .service-grid, .steps, .footer-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .nav-cta{ gap:10px; }
  .phone-number{ display:none; }
  .nav-cta .btn-primary{ padding:10px 16px; font-size:14px; }
}
