/* ============================================================
   BRAND CONFIG — FirmDuet
   ============================================================ */
:root{
  --brand-name: "FirmDuet";
  --brand-mark: "FD";
}

:root{
  --blue:#2E6FD6;
  --blue-dark:#1F5AB8;
  --blue-deep:#0B1F3A;
  --yellow:#FFDD2D;
  --yellow-dark:#E6C521;
  --gray-50:#f6f7f8;
  --gray-100:#eef0f2;
  --gray-200:#e2e5e9;
  --gray-300:#cbd0d6;
  --gray-600:#5a6573;
  --gray-800:#2f2f30;
  --white:#ffffff;
  --shadow:0 10px 25px -5px rgba(11,31,58,.08),0 8px 10px -6px rgba(11,31,58,.05);
  --radius:14px;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--blue)}
body{font-family:'Inter',system-ui,-apple-system,sans-serif;color:var(--gray-800);line-height:1.65;background:var(--white);min-height:100vh;overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{width:100%;max-width:1140px;margin:0 auto;padding:0 20px}
.container-narrow{max-width:760px;margin:0 auto;padding:0 20px}

.icon{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

/* ===== HEADER ===== */
.site-header{position:sticky;top:0;z-index:1000;background:var(--blue);transition:box-shadow .25s ease}
.site-header.scrolled{box-shadow:0 4px 16px rgba(11,31,58,.15)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;height:76px}

/* Логотип прямо на синей шапке — без фона */
.logo{
  display:inline-block;
  width:170px;
  height:44px;
  background-image:url('logo.svg');
  background-repeat:no-repeat;
  background-position:left center;
  background-size:contain;
  transition:transform .2s;
  text-indent:-9999px;
  overflow:hidden;
}
.logo:hover{transform:translateY(-1px)}
.logo-mark,.logo-text{display:none}

.nav-links{display:flex;align-items:center;gap:28px;list-style:none;font-size:.95rem;font-weight:500}
.nav-links a{color:rgba(255,255,255,.92)}
.nav-links a:hover{color:var(--yellow)}
.mobile-toggle{display:none;background:none;border:none;font-size:1.6rem;cursor:pointer;color:var(--yellow)}

.hero{padding:80px 0 70px;background:var(--blue);color:var(--white)}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:60px;align-items:center}
.hero h1{font-size:2.6rem;line-height:1.15;font-weight:800;margin-bottom:20px;letter-spacing:-.02em}
.hero p{font-size:1.1rem;color:rgba(255,255,255,.92);max-width:560px}
.hero-trust{display:flex;gap:24px;flex-wrap:wrap;font-size:.9rem;color:rgba(255,255,255,.92);margin-top:32px;padding-top:24px;border-top:1px solid rgba(255,255,255,.22)}
.hero-trust span{display:flex;align-items:center;gap:6px}
.hero-available .label{font-size:.82rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--yellow);margin-bottom:18px}
.hero-cities{display:flex;flex-direction:column;gap:12px;width:max-content}
.hero-city{display:inline-flex;align-items:center;gap:10px;padding:13px 22px;background:rgba(255,255,255,.1);border:1.5px solid rgba(255,255,255,.3);border-radius:100px;font-size:.98rem;color:var(--white);font-weight:600;cursor:default;user-select:none}
.hero-city svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;color:var(--yellow)}

.page-hero{padding:70px 0 60px;background:var(--blue);color:var(--white);text-align:center}
.page-hero h1{font-size:2.4rem;font-weight:800;margin-bottom:14px;letter-spacing:-.02em}
.page-hero p{font-size:1.1rem;color:rgba(255,255,255,.92);max-width:680px;margin:0 auto}
.breadcrumbs{font-size:.85rem;color:rgba(255,255,255,.7);margin-bottom:14px}
.breadcrumbs a:hover{color:var(--yellow)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 26px;border-radius:10px;font-weight:600;font-size:.95rem;transition:all .2s;border:2px solid transparent;cursor:pointer;font-family:inherit}
.btn-primary{background:var(--yellow);color:var(--blue-deep);border-color:var(--yellow)}
.btn-primary:hover{background:var(--yellow-dark);border-color:var(--yellow-dark);transform:translateY(-1px)}
.btn-large{padding:16px 32px;font-size:1.05rem}

section{padding:80px 0}
.section-header{text-align:center;max-width:720px;margin:0 auto 50px}
.section-header h2{font-size:2rem;font-weight:800;color:var(--blue-deep);margin-bottom:12px;letter-spacing:-.02em}
.section-header p{color:var(--gray-600);font-size:1.05rem}
.bg-light{background:var(--gray-50)}

.services-wrap{max-width:1080px;margin:0 auto}
.services-block + .services-block{margin-top:40px;padding-top:40px;border-top:1px solid var(--gray-300)}

.services-block-title{display:flex;align-items:flex-start;gap:24px;flex-wrap:wrap;margin-bottom:22px}
.services-block-title .title-text{flex:1;min-width:220px}
.services-block-title h3{font-size:1.3rem;font-weight:800;color:var(--blue-deep);letter-spacing:-.01em;margin-bottom:2px}
.services-block-title p{font-size:.85rem;color:var(--gray-600);margin:0;line-height:1.5}

.city-select{position:relative;display:inline-flex;align-items:center;gap:10px;padding-top:4px;flex-shrink:0}
.city-label{font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gray-600);display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.city-label svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;color:var(--blue)}
.city-current{display:inline-flex;align-items:center;gap:7px;padding:4px 2px 5px;background:none;border:none;border-bottom:2px solid var(--yellow);font-family:inherit;font-size:.95rem;font-weight:700;color:var(--blue-deep);cursor:pointer;transition:color .2s;white-space:nowrap}
.city-current:hover{color:var(--blue)}
.city-current .chevron{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.city-select:hover .chevron,
.city-select.open .chevron{transform:rotate(180deg)}
.city-menu{position:absolute;top:100%;left:0;padding-top:10px;list-style:none;min-width:200px;z-index:100;opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .15s, transform .15s, visibility .15s}
.city-select:hover .city-menu,
.city-select.open .city-menu{opacity:1;visibility:visible;transform:translateY(0)}
.city-menu-inner{background:var(--white);border:1px solid var(--gray-200);border-radius:10px;box-shadow:0 12px 28px rgba(11,31,58,.12);padding:6px;overflow:hidden}
.city-menu button{display:flex;align-items:center;width:100%;padding:9px 12px;background:none;border:none;font-family:inherit;font-size:.9rem;font-weight:600;color:var(--gray-800);cursor:pointer;border-radius:6px;text-align:left;transition:all .15s}
.city-menu button:hover{background:rgba(46,111,214,.08);color:var(--blue)}
.city-menu button.active{color:var(--blue);background:rgba(46,111,214,.06)}
.city-menu button.active::after{content:'✓';margin-left:auto;color:var(--blue);font-weight:800;font-size:.8em}

.services-block-body{display:grid;grid-template-columns:1fr 1fr;position:relative}
.services-block-body::before{content:'';position:absolute;top:0;bottom:0;left:50%;width:1px;background:var(--gray-200)}
.services-half{padding:0 32px}
.services-half:first-child{padding-left:0}
.services-half:last-child{padding-right:0}
.services-half h4{font-size:.72rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--blue);margin-bottom:4px}
.services-half .half-desc{font-size:.82rem;color:var(--gray-600);line-height:1.5;margin-bottom:12px}

.services-list{display:grid}
.services-list a{display:flex;align-items:center;padding:8px 8px;font-size:.88rem;color:var(--gray-800);font-weight:500;line-height:1.3;border-bottom:1px solid var(--gray-100);transition:all .15s}
.services-list a:last-child{border-bottom:none}
.services-list a::before{content:'→';color:var(--blue);font-weight:700;margin-right:10px;transition:transform .2s;flex-shrink:0;font-size:.85em}
.services-list a:hover{background:rgba(46,111,214,.04);color:var(--blue);padding-left:12px}
.services-list a:hover::before{transform:translateX(2px)}

.states-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;max-width:960px;margin:0 auto}
.state-card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);padding:36px}
.state-card .state-name{font-size:1.35rem;color:var(--blue-deep);font-weight:800;margin-bottom:6px}
.state-card .state-subtitle{font-size:.85rem;color:var(--gray-600);letter-spacing:.08em;text-transform:uppercase;font-weight:600;margin-bottom:22px}
.state-facts{list-style:none;display:grid;gap:14px}
.state-facts li{display:flex;gap:12px;font-size:.93rem;color:var(--gray-600);line-height:1.6}
.state-facts li svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;color:var(--blue);margin-top:2px}

.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.why-card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);padding:30px}
.why-icon{width:60px;height:60px;background:rgba(46,111,214,.08);color:var(--blue);border-radius:14px;display:grid;place-items:center;margin-bottom:18px}
.why-icon svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.why-card h3{font-size:1.1rem;margin-bottom:10px;color:var(--blue-deep)}
.why-card p{font-size:.93rem;color:var(--gray-600);line-height:1.65}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.step{text-align:center}
.step-number{width:58px;height:58px;background:var(--blue);color:var(--yellow);border-radius:50%;display:grid;place-items:center;font-size:1.3rem;font-weight:800;margin:0 auto 18px}
.step h3{font-size:1.08rem;margin-bottom:8px;color:var(--blue-deep)}
.step p{font-size:.92rem;color:var(--gray-600)}

.faq-list{max-width:800px;margin:0 auto;display:grid;gap:14px}
.faq-item{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden}
.faq-question{width:100%;text-align:left;padding:20px 24px;background:none;border:none;font-family:inherit;font-size:1rem;font-weight:600;color:var(--blue-deep);cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:20px}
.faq-question:hover{background:var(--gray-50)}
.faq-answer{padding:0 24px 20px;color:var(--gray-600);font-size:.95rem;display:none}
.faq-item.active .faq-answer{display:block}
.faq-item.active .faq-question span{transform:rotate(45deg)}
.faq-question span{font-size:1.4rem;color:var(--blue);transition:transform .2s;line-height:1;flex-shrink:0}

.prose{max-width:760px;margin:0 auto;font-size:1rem}
.prose h2{font-size:1.6rem;color:var(--blue-deep);margin:40px 0 20px;font-weight:800;text-align:left}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:1.15rem;color:var(--blue-deep);margin:28px 0 12px;font-weight:700}
.prose p{margin-bottom:18px;line-height:1.75}
.prose ul,.prose ol{margin:0 0 18px 24px}
.prose li{margin-bottom:10px;line-height:1.7}
.prose a{color:var(--blue);font-weight:600;border-bottom:1px solid rgba(46,111,214,.3)}
.prose a:hover{border-bottom-color:var(--blue)}
.prose strong{color:var(--blue-deep)}

.contact-card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);padding:40px;box-shadow:var(--shadow)}
.contact-card h2{font-size:1.5rem;color:var(--blue-deep);margin-bottom:8px;font-weight:800}
.contact-card .subtitle{color:var(--gray-600);font-size:.95rem;margin-bottom:26px}
.form-group{margin-bottom:18px}
.form-group label{display:block;font-size:.85rem;font-weight:600;color:var(--blue-deep);margin-bottom:6px}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:12px 14px;border:1px solid var(--gray-200);border-radius:10px;font-family:inherit;font-size:.95rem;background:var(--gray-50);color:var(--gray-800);transition:all .2s}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--blue);background:var(--white);box-shadow:0 0 0 3px rgba(46,111,214,.1)}
.form-group textarea{resize:vertical;min-height:130px}
.form-group input[type=checkbox]{width:auto}
.tcpa-group{display:flex;align-items:flex-start;gap:10px;margin-top:6px}
.tcpa-group input{width:auto;margin-top:4px;flex-shrink:0}
.tcpa-group label{font-size:.78rem;font-weight:400;color:var(--gray-600);line-height:1.55;margin:0}
.form-note{font-size:.78rem;font-weight:400;color:var(--gray-600);margin-top:14px;text-align:center;line-height:1.55;font-style:normal}

.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.blog-card{background:var(--white);border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden;transition:all .25s;display:flex;flex-direction:column;color:inherit}
.blog-card:hover{box-shadow:var(--shadow);transform:translateY(-4px);border-color:var(--blue)}
.blog-card-top{padding:28px 28px 0}
.blog-card-cat{font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--blue);margin-bottom:12px}
.blog-card h3{font-size:1.15rem;color:var(--blue-deep);margin-bottom:10px;font-weight:800;line-height:1.35}
.blog-card p{font-size:.92rem;color:var(--gray-600);line-height:1.6;margin-bottom:20px}
.blog-card-body{padding:0 28px 28px;display:flex;flex-direction:column;flex:1}
.blog-card .read-more{margin-top:auto;font-size:.85rem;font-weight:700;color:var(--blue);letter-spacing:.03em;text-transform:uppercase}
.blog-card .read-more::after{content:' →'}

.article-header{padding:70px 0 50px;background:var(--blue);color:var(--white);text-align:center}
.article-header h1{font-size:2.3rem;font-weight:800;margin-bottom:16px;letter-spacing:-.02em;max-width:820px;margin-left:auto;margin-right:auto;line-height:1.2}
.article-meta{font-size:.85rem;color:rgba(255,255,255,.8);display:flex;justify-content:center;gap:20px;flex-wrap:wrap;align-items:center}
.article-meta .cat{color:var(--yellow);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:.75rem}
.article-body{padding:60px 0}
.article-cta{background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius);padding:36px;text-align:center;margin:48px 0 0}
.article-cta h3{font-size:1.3rem;color:var(--blue-deep);margin-bottom:10px;font-weight:800}
.article-cta p{color:var(--gray-600);margin-bottom:22px;font-size:.98rem}
.article-related{background:var(--gray-50);padding:60px 0}
.article-related h2{font-size:1.5rem;color:var(--blue-deep);margin-bottom:30px;text-align:center;font-weight:800}

.site-footer{background:var(--blue);color:rgba(255,255,255,.92);padding:60px 0 30px;font-size:.9rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:50px;margin-bottom:40px}
.footer-brand p{max-width:360px;color:rgba(255,255,255,.85);font-size:.88rem}
.footer-col h4{color:var(--white);font-size:.95rem;margin-bottom:16px}
.footer-col ul{list-style:none;display:grid;gap:10px}
.footer-col a{color:rgba(255,255,255,.9)}
.footer-col a:hover{color:var(--yellow)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.2);padding-top:24px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:.8rem;color:rgba(255,255,255,.75)}
.footer-bottom a{color:var(--yellow)}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:9999;
  padding:0 20px 20px;
  transform:translateY(20px);
  opacity:0;
  transition:opacity .3s ease, transform .3s ease;
  pointer-events:none;
}
.cookie-banner.visible{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.cookie-banner-inner{
  max-width:1140px;
  margin:0 auto;
  background:#ffffff;
  border:1px solid var(--gray-200);
  border-radius:14px;
  box-shadow:0 20px 40px -10px rgba(11,31,58,.18),0 8px 16px -6px rgba(11,31,58,.1);
  padding:22px 26px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.cookie-banner-text{
  flex:1;
  min-width:260px;
}
.cookie-banner-text h4{
  font-size:1rem;
  font-weight:800;
  color:var(--blue-deep);
  margin:0 0 6px;
  line-height:1.3;
}
.cookie-banner-text p{
  font-size:.85rem;
  color:var(--gray-600);
  line-height:1.55;
  margin:0;
}
.cookie-banner-text a{
  color:var(--blue);
  font-weight:600;
  border-bottom:1px solid rgba(46,111,214,.3);
}
.cookie-banner-text a:hover{
  border-bottom-color:var(--blue);
}
.cookie-banner-actions{
  display:flex;
  gap:10px;
  flex-shrink:0;
  align-items:center;
}
.cookie-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 22px;
  border-radius:10px;
  font-family:inherit;
  font-size:.88rem;
  font-weight:700;
  cursor:pointer;
  transition:all .2s;
  border:2px solid transparent;
  white-space:nowrap;
}
.cookie-btn-accept{
  background:var(--yellow);
  color:var(--blue-deep);
  border-color:var(--yellow);
}
.cookie-btn-accept:hover{
  background:var(--yellow-dark);
  border-color:var(--yellow-dark);
  transform:translateY(-1px);
}
.cookie-btn-reject{
  background:transparent;
  color:var(--blue-deep);
  border-color:var(--gray-300);
}
.cookie-btn-reject:hover{
  background:var(--gray-50);
  border-color:var(--gray-600);
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:40px}
  .why-grid,.steps,.states-grid,.blog-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .hero h1{font-size:2.1rem}
  .page-hero h1{font-size:2rem}
  .article-header h1{font-size:1.9rem}
}
@media(max-width:700px){
  .services-block-title{flex-direction:column;align-items:flex-start;gap:12px}
  .services-block-body{grid-template-columns:1fr}
  .services-block-body::before{left:0;right:0;top:50%;bottom:auto;width:auto;height:1px}
  .services-half{padding:24px 0}
  .services-half:first-child{padding-top:0;padding-bottom:24px}
  .services-half:last-child{padding-top:24px;padding-bottom:0}

  .cookie-banner{padding:0 14px 14px}
  .cookie-banner-inner{padding:18px 20px;flex-direction:column;align-items:stretch;gap:16px}
  .cookie-banner-actions{width:100%;flex-direction:column-reverse}
  .cookie-btn{width:100%;padding:12px 18px;font-size:.9rem}
}
@media(max-width:640px){
  .nav-links{display:none}
  .mobile-toggle{display:block}
  .nav-links.open{display:flex;flex-direction:column;align-items:flex-start;position:absolute;top:76px;left:0;right:0;background:var(--blue);padding:24px;border-bottom:1px solid var(--blue-dark);box-shadow:var(--shadow);gap:16px}
  .why-grid,.steps,.states-grid,.footer-grid,.blog-grid{grid-template-columns:1fr}
  .hero{padding:56px 0}
  .hero h1{font-size:1.8rem}
  .page-hero{padding:50px 0 44px}
  .page-hero h1{font-size:1.65rem}
  .article-header{padding:50px 0 36px}
  .article-header h1{font-size:1.55rem}
  section{padding:56px 0}
  .logo{width:140px;height:36px}
}