:root {
    --primary: #1fa8ff;
    --primary-dark: #0d7ad0;
    --accent: #44d48a;
    --bg-light: #f5f8ff;
    --bg-soft: #f9fbff;
    --text-main: #1c2533;
    --text-muted: #7a8597;
    --border-soft: #e2e7f3;
    --card-radius: 20px;
    --shadow-soft: 0 18px 40px rgba(14, 34, 80, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    background: white;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
    radial-gradient(circle at 10% 20%, rgba(79, 209, 255, 0.2) 0, transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(68, 212, 138, 0.18) 0, transparent 55%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.header {
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(226,231,243,0.8);
}

.header-inner {
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:20px;
  font-weight:700;
  color:var(--primary-dark);
}

.logo-mark {
  width:32px;
  height:32px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:18px;
  box-shadow:0 10px 25px rgba(31,168,255,0.35);
}

.nav {
  display:flex;
  gap:20px;
  font-size:14px;
  color:var(--text-muted);
}

.nav a { position:relative; padding-bottom:2px; }
.nav a::after{
  content:"";
  position:absolute;
  bottom:-4px; left:0;
  width:0; height:2px;
  background:var(--primary);
  border-radius:99px;
  transition:.2s;
}
.nav a:hover { color:var(--primary-dark); }
.nav a:hover::after { width:100%; }

.header-contacts{
  display:flex;
  align-items:center;
  gap:14px;
}

.header-phone{
  display:flex;
  flex-direction:column;
  line-height:1.15;
}
.header-phone span{font-size:11px;color:var(--text-muted);}
.header-phone a{font-weight:600;}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  border:none;
  font-size:14px;
  cursor:pointer;
  font-weight:600;
}
.btn-primary{
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  box-shadow:0 14px 30px rgba(31,168,255,0.4);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(31, 168, 255, 0.06);
    color: var(--primary-dark);
    font-size: 11px;
}

.burger{
  width:40px;height:40px;
  border-radius:999px;
  border:1px solid rgba(31,168,255,0.35);
  background:#fff;
  display:none;
  align-items:center;justify-content:center;
  cursor:pointer;
}
.burger-inner{
  width:18px;height:2px;background:var(--primary-dark);
  position:relative;
}
.burger-inner::before,
.burger-inner::after{
  content:"";
  position:absolute;left:0;
  width:18px;height:2px;
  background:var(--primary-dark);
  transition:.25s;
}
.burger-inner::before{top:-6px;}
.burger-inner::after{bottom:-6px;}

.burger.is-open .burger-inner{background:transparent;}
.burger.is-open .burger-inner::before{
  top:0; transform:rotate(45deg);
}
.burger.is-open .burger-inner::after{
  bottom:0; transform:rotate(-45deg);
}

/* mobile menu */
.mobile-menu-backdrop{
  position:fixed; inset:0;
  background:rgba(9,15,34,0.45);
  backdrop-filter:blur(6px);
  opacity:0;
  pointer-events:none;
  transition:.2s;
  z-index:1999;
}

.mobile-menu{
  position:fixed;
  top:0; right:0;
  width:100%; max-width:320px;
  height:100%;
  background:#fff;
  transform:translateX(100%);
  transition:.25s;
  padding:76px 24px 24px;
  display:flex;
  flex-direction:column;
  gap:24px;
  z-index:2000;
  box-shadow:-16px 0 40px rgba(9,25,55,0.18);
}

.mobile-menu-header{
  position:absolute;
  top:16px; left:24px; right:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.mobile-menu-logo{
  font-size:18px;font-weight:700;color:var(--primary-dark);
}

.mobile-menu-close{
  width:32px; height:32px;
  border-radius:999px;
  border:1px solid rgba(31,168,255,0.35);
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.mobile-menu-close span{
  position:relative;
  width:16px;height:2px;background:transparent;
}
.mobile-menu-close span::before,
.mobile-menu-close span::after{
  content:"";
  position:absolute;left:0;
  width:16px;height:2px;
  background:var(--primary-dark);
}
.mobile-menu-close span::before{transform:rotate(45deg);}
.mobile-menu-close span::after{transform:rotate(-45deg);}

.mobile-menu-nav{
  display:flex;
  flex-direction:column;
  gap:20px;
  font-size:16px;
  color:var(--text-muted);
}
.mobile-menu-nav a:hover{color:var(--primary-dark);}

.mobile-menu-contacts{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.mobile-menu-open .mobile-menu-backdrop{
  opacity:1; pointer-events:auto;
}
.mobile-menu-open .mobile-menu{
  transform:translateX(0);
}

.mobile-phone-box {
    display: none;
}

@media(max-width:960px){
  .nav{display:none;}
  /* .header-phone{display:none;} */
  .header-contacts .btn{display:none;}
  .burger{display:flex;}
}

@media(max-width:400px){
    .header-phone {
        display:none;
    }
    .mobile-phone-box {
        display: block;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 14px 30px rgba(31, 168, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(31, 168, 255, 0.5);
}

.btn-outline {
    border: 1px solid rgba(31, 168, 255, 0.4);
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
    background: rgba(31, 168, 255, 0.05);
}

/* Hero */

.hero {
    padding: 40px 0 50px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 22px rgba(15, 55, 130, 0.08);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.hero-label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(68, 212, 138, 0.3);
}

.hero-title {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.hero-title span {
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 22px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
    font-size: 12px;
}

.hero-badges .pill-badge {
    background: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-note {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-secondary-info {
    display: flex;
    gap: 20px;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

.hero-secondary-info strong {
    display: block;
    font-size: 14px;
    color: var(--text-main);
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-photo-card {
    border-radius: 30px;
    background: radial-gradient(circle at 0 0, rgba(68, 212, 138, 0.25), transparent 50%),
    radial-gradient(circle at 100% 0, rgba(31, 168, 255, 0.25), transparent 55%),
    white;
    box-shadow: var(--shadow-soft);
    padding: 22px 22px 14px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 478px;
}

.hero-photo-figure {
    height: 280px;
    border-radius: 26px;
    background:
    linear-gradient(135deg, #f9fbff, #eef4ff);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.hero-photo-card .hero-photo-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-photo-placeholder {
    width: 180px;
    height: 220px;
    border-radius: 999px;
    background: linear-gradient(160deg, #00c2ff, #00e0b8);
    position: relative;
}

.hero-photo-placeholder::after {
    content: "Фото клинера";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-media-tag {
    position: absolute;
    right: 0px;
    top: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 26px rgba(11, 34, 72, 0.16);
    font-size: 11px;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    max-width: 170px;
}

.hero-media-tag span:first-child {
    color: var(--text-muted);
}

.hero-media-tag strong {
    color: var(--primary-dark);
}

.hero-media-floating {
    position: absolute;
    left: 0px;
    bottom: 10px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(15, 45, 100, 0.95);
    color: white;
    font-size: 11px;
    box-shadow: 0 14px 30px rgba(3, 21, 56, 0.6);
}

.hero-media-floating strong {
    display: block;
    font-size: 13px;
    margin-bottom: 2px;
}

/* Section generic */

.section {
    padding: 40px 0;
}

.section-alt {
    background: var(--bg-soft);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    margin: 0;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 440px;
}

/* Services grid */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    border-radius: var(--card-radius);
    background: white;
    box-shadow: var(--shadow-soft);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-soft {
    box-shadow: 0 10px 26px rgba(18, 40, 92, 0.06);
    border: 1px solid rgba(226, 231, 243, 0.9);
}

.service-card-header {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31, 168, 255, 0.12), rgba(68, 212, 138, 0.22));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.service-icon img {
  width: 32px;
  height: 32px;
  border-radius: 16px;
}

.service-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.service-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.service-body {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.price-tag {
    font-weight: 600;
    color: var(--primary-dark);
}

.text-link {
    font-size: 12px;
    color: var(--primary-dark);
}

/* Calculator */

.calc-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 26px;
    align-items: center;
}

.calc-card {
    border-radius: 26px;
    background: white;
    box-shadow: var(--shadow-soft);
    padding: 22px 22px 18px;
    border: 1px solid rgba(226, 231, 243, 0.9);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.form-field label {
    color: var(--text-muted);
}

.input, .select {
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    padding: 9px 14px;
    font-size: 14px;
    outline: none;
    background: #fbfcff;
}

.input:focus, .select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(31, 168, 255, 0.18);
    background: white;
}

.calc-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
}

.calc-note {
    color: var(--text-muted);
}

.calc-result {
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--bg-light);
    font-size: 13px;
}

.calc-illustration {
    border-radius: 24px;
    background:
    radial-gradient(circle at 0 0, rgba(31, 168, 255, 0.2), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(68, 212, 138, 0.25), transparent 55%),
    #0e1b3d;
    color: white;
    padding: 22px 20px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.calc-illustration h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.calc-illustration p {
    margin: 0 0 12px;
    font-size: 13px;
    max-width: 260px;
    color: rgba(235, 242, 255, 0.92);
}

.calc-illustration-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    font-size: 12px;
}

.calc-illustration-list li::before {
    content: "•";
    margin-right: 6px;
    color: var(--accent);
}

.calc-badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background: rgba(5, 17, 48, 0.8);
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 11px;
    border: 1px solid rgba(177, 207, 255, 0.4);
}

/* Reviews carousel stub */

.reviews-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.review-card {
    border-radius: 18px;
    background: white;
    box-shadow: 0 12px 30px rgba(9, 27, 68, 0.1);
    padding: 12px 12px 10px;
    font-size: 11px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffc857, #ff6f61);
}

.review-name {
    font-weight: 600;
    font-size: 12px;
}

.review-tagline {
    color: var(--text-muted);
    font-size: 10px;
}

.review-body {
    background: #050915;
    border-radius: 14px;
    padding: 8px 9px;
    color: rgba(234, 240, 255, 0.96);
    line-height: 1.35;
    position: relative;
}

.review-body::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: #050915;
    transform: rotate(45deg);
}

/* Tariffs */

.tariff-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tariff-card {
    border-radius: 22px;
    background: white;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 260px;
}

.tariff-image {
    height: 110px;
    background: linear-gradient(135deg, #ebf3ff, #f9fbff);
}

.tariff-card .tariff-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tariff-content {
    padding: 14px 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.tariff-title {
    font-weight: 600;
    font-size: 14px;
}

.tariff-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.tariff-list {
    list-style: none;
    padding: 0;
    margin: 0 0 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.tariff-list li::before {
    content: "✓";
    font-size: 11px;
    margin-right: 4px;
    color: var(--accent);
}

.tariff-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: auto;
}

/* Partners */

.partners-row {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
}

.partner-logo {
    width: 140px;
    height: fit-content;
    background: #ffffff;
    /* border-radius: 999px; */
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 18px rgba(15, 37, 86, 0.05);
    padding: 20px;
    border-radius: 15px;
}

/* Letters */

.letters-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.letter-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    height: 130px;
}

/* Cases */

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.case-card {
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    max-width: 368px;
}

.case-image {
    height: 368px;
    background: linear-gradient(135deg, #e5f2ff, #f5fbff);
}

.case-card .case-image img {
    max-width: 368px;
}

.case-content {
    padding: 12px 14px 14px;
    font-size: 13px;
}

.case-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.case-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* SEO block */

.seo-block {
    border-radius: 22px;
    background: linear-gradient(135deg, #0c163a, #051024);
    color: rgba(232, 239, 255, 0.96);
    padding: 24px 22px;
    position: relative;
    overflow: hidden;
}

.seo-block::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 168, 255, 0.7), transparent 60%);
    opacity: 0.5;
}

.seo-block h2 {
    margin-top: 0;
    font-size: 20px;
}

.seo-block p {
    font-size: 13px;
    margin-bottom: 10px;
    color: rgba(218, 228, 255, 0.96);
}

/* FAQ */

.faq-list {
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    background: white;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border-soft);
}

.faq-header {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
}

.faq-header span {
    font-weight: 500;
}

.faq-toggle {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
}

.faq-body {
    padding: 0 18px 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-body {
    display: none;
}

.faq-item--open .faq-body {
    display: block;
}

.faq-header {
    cursor: pointer;
}

/* Footer */

.footer {
    margin-top: 40px;
    background: #050d22;
    color: rgba(214, 224, 255, 0.9);
    padding: 28px 0 18px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    font-size: 13px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
}

.footer-inner p {
    width: 100%;
    max-width: 358px;
}

.footer-logo .logo-mark {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
}

.footer-column-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.footer-bottom {
    margin-top: 18px;
    border-top: 1px solid rgba(108, 122, 163, 0.4);
    padding-top: 10px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    color: rgba(167, 178, 215, 0.9);
}

.footer-item .logo img {
    width: 100%;
    height: auto;
    max-width: 60px;
    object-fit: cover;
}

/* Обёртка поля */
.calc-consent-new {
    margin-top: 20px;
    border-style: unset;
}

/* Контейнер чекбокса */
.calc-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
  cursor: pointer;
  position: relative;
}

/* Прячем нативный input */
.calc-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Кастомный квадратик */
.calc-checkbox-box {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

/* Галочка */
.calc-checkbox-box::after {
  content: "";
  width: 7px;
  height: 4px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: scale(0) rotate(-45deg);
  transition: transform 0.16s ease-out;
}

/* Ховер */
.calc-checkbox:hover .calc-checkbox-box {
  border-color: rgba(37, 99, 235, 0.5);
}

/* Checked состояние */
.calc-checkbox input[type="checkbox"]:checked + .calc-checkbox-box {
  background: linear-gradient(135deg, #22c1c3 0%, #1d8cf8 100%);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.calc-checkbox input[type="checkbox"]:checked + .calc-checkbox-box::after {
  transform: scale(1) rotate(-45deg);
}

/* Текст */
.calc-checkbox-text {
  display: inline-block;
}

.calc-checkbox-text a {
  color: #2563eb;
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.4);
  font-weight: 500;
}

.calc-checkbox-text a:hover {
  border-bottom-style: solid;
}

/* Ошибка */
.calc-checkbox-error {
  margin-left: 30px;
  margin-top: 6px;
  font-size: 12px;
  color: #ef4444;
  display: none;
}

/* Покажи ошибку, если нужно (класс навешиваешь сам) */
.calc-checkbox.error .calc-checkbox-error {
  display: block;
}

.consultation {
  padding: 20px 0 20px;
}

.consultation-card {
  max-width: 420px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(15, 35, 52, 0.08);
  border-radius: 24px;
  padding: 32px 28px 28px;
}

.consultation-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 8px;
}

.consultation-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: #6f7b8a;
  margin-bottom: 20px;
}

.consultation-messengers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.consultation-messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d3e4f7;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.consultation-messenger--wa {
  border-color: #25d366;
  color: #25d366;
}

.consultation-messenger--wa:hover {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.25);
}

.consultation-messenger--tg {
  border-color: #229ed9;
  color: #229ed9;
}

.consultation-messenger--tg:hover {
  background-color: #229ed9;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(34, 158, 217, 0.25);
}

.consultation-divider {
  text-align: center;
  font-size: 13px;
  color: #9aa4b4;
  margin: 14px 0 18px;
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.consultation-field input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #d3e4f7;
  padding: 0 18px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.consultation-field input:focus {
  border-color: #18a8ff;
  box-shadow: 0 0 0 3px rgba(24, 168, 255, 0.15);
}

.consultation-submit {
  height: 50px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #18a8ff, #007bff);
  color: #ffffff;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

.consultation-submit:hover {
  box-shadow: 0 16px 35px rgba(0, 123, 255, 0.3);
  transform: translateY(-1px);
}

.consultation-agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #7a8697;
}

.consultation-agreement input[type="checkbox"] {
  margin-top: 2px;
}

.consultation-agreement a {
  color: #007bff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.form-error {
  margin-bottom: 10px;
  font-size: 13px;
  color: #d93025;
}

.form-success {
  margin-bottom: 10px;
  font-size: 13px;
  color: #1a7f37;
}

.field-error {
  margin-top: 4px;
  font-size: 12px;
  color: #d93025;
}

@media (max-width: 575px) {
  .consultation-card {
    margin: 0 16px;
    padding: 24px 20px 24px;
}

  .consultation-title {
    font-size: 20px;
}
}

/* Оверлей модалки */
#modal-form {
    display: none; /* Fancybox сам вытащит содержимое в модалку */
    background: unset;
    padding: unset;
}

/* Карточка формы, стиль как на сайте */
.banner__form-form.main-form {
  background: #ffffff;
  border-radius: 24px;
  max-width: 430px;
  width: 100%;
  padding: 32px 32px 28px;
  box-shadow: 0 18px 45px rgba(16, 31, 56, 0.18);
  text-align: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Заголовок */
.main-form__title {
  margin: 0 0 20px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  color: #1c274c;
}

/* Внутренняя форма */
.main-form__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Поле телефона: «пилюля», синяя рамка, как на новом сайте */
.main-form__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid #e3edff;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  color: #1c274c;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.main-form__input::placeholder {
  color: #b4bed6;
}

.main-form__input:focus {
  border-color: #0b8dff;
  box-shadow: 0 0 0 3px rgba(11, 141, 255, 0.2);
}

/* Чекбокс */
.main-form__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 12px;
  line-height: 1.5;
  color: #5f6b88;
  cursor: pointer;
}

/* скрываем стандартный чекбокс */
.main-form__checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* кастомный квадратик */
.main-form__checkbox .checkmark {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #c4cfea;
  background: #ffffff;
  margin-top: 2px;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

/* галочка */
.main-form__checkbox input[type="checkbox"]:checked + .checkmark {
  background: #0b8dff;
  border-color: #0b8dff;
}

.main-form__checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* текст рядом с чекбоксом */
.main-form__checkbox-text a {
  color: #1a9fff;
  text-decoration: none;
}

.main-form__checkbox-text a:hover {
  text-decoration: underline;
}

/* сообщение об ошибке у чекбокса */
.invalid-checkbox {
  font-size: 11px;
  color: #e53935;
  margin-top: 6px;
  display: none;
}

/* если хочешь показывать ошибку через класс .is-invalid */
.main-form__checkbox.is-invalid .invalid-checkbox {
  display: block;
}

/* Кнопка отправки в стиле CTA */
.main-form__btn {
  margin-top: 4px;
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #27b5ff, #0b8dff);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(5, 124, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.main-form__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(5, 124, 255, 0.5);
}

/* Сообщения об ошибках/успехе */
.main-form__alert {
  margin-top: 10px;
  font-size: 12px;
  text-align: left;
}

.main-form__alert--error {
  color: #e53935;
}

.main-form__alert--success {
  color: #2e7d32;
}

/* Адаптив */
@media (max-width: 480px) {
  .banner__form-form.main-form {
    padding: 24px 20px 22px;
    border-radius: 20px;
  }

  .main-form__title {
    font-size: 18px;
  }
}



/* Simple responsive */

@media (max-width: 1024px) {
    .hero-inner,
    .calc-layout {
    grid-template-columns: 1fr;
    }

    .tariff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reviews-row,
    .letters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner {
    gap: 10px;
    }
    .nav {
    display: none;
    }
    .hero-inner {
    gap: 26px;
    }
    .services-grid,
    .tariff-grid,
    .reviews-row,
    .letters-row,
    .cases-grid {
    grid-template-columns: 1fr;
    }
    .footer-inner {
    grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .footer-inner {
    grid-template-columns: 1fr;
    }
    .hero-title {
    font-size: 26px;
    }
}