/* ============================================================
   ЕфрНет — основные стили
   Палитра: оранжевый #F2742B, тёмный #D55F18, крем #FFF1E6,
   текст #1F2933, фон #FFFFFF. Шрифты: Nunito + Caveat (акценты).
   ============================================================ */

:root {
  --orange: #F2742B;
  --orange-dark: #D55F18;
  --cream: #FFF1E6;
  --cream-border: #F6E3D4;
  --cream-dash: #F5DBC4;
  --ink: #1F2933;
  --muted: #46555D;
  --muted-2: #5C6B73;
  --muted-3: #7A8A90;
  --label: #8A9AA0;
  --green: #2FB6A4;
  --green-dark: #1E8F84;
  --max: 1180px;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

@keyframes efr-floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes efr-dash { to { stroke-dashoffset: -220; } }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(40px,6vw,72px) clamp(16px,4vw,40px); }
.section--cream { background: var(--cream); max-width: none; margin: 0; }
.section--cream > .wrap { padding-top: clamp(44px,7vw,84px); padding-bottom: clamp(44px,7vw,84px); }

.sketch { color: var(--orange-dark); }
.caveat { font-family: 'Caveat', cursive; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 800;
  border-radius: 15px 13px 16px 12px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer; border: none;
}
.btn--primary {
  background: var(--orange); color: #fff;
  padding: 15px 26px; font-size: 16px;
  box-shadow: 0 12px 24px rgba(242,116,43,.3);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(242,116,43,.38); }
.btn--lg { padding: 17px 30px; font-size: clamp(1rem,1.6vw,1.12rem); border-radius: 18px 15px 19px 14px; box-shadow: 0 14px 28px rgba(242,116,43,.32); }
.btn--outline {
  background: #fff; color: var(--orange-dark);
  border: 2px solid var(--orange); padding: 13px 24px; font-size: 16px;
}
.btn--outline:hover { background: var(--orange); color: #fff; }
.btn--block { display: block; text-align: center; }

/* --- Заголовки секций --- */
.h-section { font-size: clamp(1.7rem,4vw,2.5rem); font-weight: 900; letter-spacing: -.02em; margin: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px,4vw,40px); }
.section-head--center { display: block; text-align: center; margin-bottom: clamp(30px,5vw,52px); }
.section-head--left { display: block; text-align: left; margin-bottom: clamp(24px,4vw,40px); }
.link-more { text-decoration: none; color: var(--orange-dark); font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.link-more:hover { gap: 11px; }
.underline-sketch { display: inline-block; margin-top: 4px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(31,41,51,0.04);
  transition: background .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: rgba(255,255,255,0.72); box-shadow: 0 6px 24px rgba(31,41,51,.10); }
.header__bar { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px,4vw,40px); min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; }
.logo__name { font-weight: 900; font-size: 23px; letter-spacing: -.01em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px; }
.nav a:hover, .nav a.is-active { color: var(--orange); }
.nav a.is-active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 14'%3E%3Cpath d='M3 8 Q44 2 90 7 T177 7' stroke='%23F2742B' stroke-width='3.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 110% 8px;
  padding-bottom: 9px;
}
.header__right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header__phone { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 16px; white-space: nowrap; }
.header__phone:hover { color: var(--orange); }
.header__cab { text-decoration: none; background: var(--orange); color: #fff; font-weight: 800; font-size: 15px; padding: 11px 20px; border-radius: 14px 12px 15px 11px; white-space: nowrap; box-shadow: 0 8px 18px rgba(242,116,43,.28); transition: transform .15s ease, box-shadow .15s ease; }
.header__cab:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(242,116,43,.36); }
.header__cab--icon { padding: 0; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; line-height: 0; flex-shrink: 0; }

/* Иконки-ссылки на новостные каналы (MAX + Telegram) */
.social { display: flex; align-items: center; gap: 10px; }
.social a { display: inline-flex; line-height: 0; border-radius: 11px; transition: transform .15s ease, filter .15s ease; }
.social a:hover { transform: translateY(-2px); filter: brightness(1.07); }
.social svg { display: block; }
.social--header svg, .social--menu svg { width: 34px; height: 34px; }
.social--menu { margin-top: 10px; padding: 4px 0; }
.mobile-menu .social a { padding: 0; border: 0; }
.social--footer { margin-top: 4px; }

.burger { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 2px solid var(--ink); background: #fff; border-radius: 13px 11px 14px 10px; cursor: pointer; flex-shrink: 0; padding: 0; }

.mobile-menu { display: none; border-top: 1px solid var(--cream-border); background: rgba(255,255,255,0.98); backdrop-filter: blur(14px); padding: 16px clamp(16px,4vw,40px) 24px; flex-direction: column; gap: 4px; max-height: calc(100dvh - 80px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.mobile-menu.is-open { display: flex; }
.mobile-menu a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; padding: 13px 6px; border-bottom: 1px dashed var(--cream-dash); }
.mobile-menu .header__cab { margin-top: 12px; text-align: center; font-size: 17px; padding: 15px; border-radius: 15px 13px 16px 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(36px,7vw,76px) clamp(16px,4vw,40px) clamp(24px,5vw,56px); }
.hero__blob { position: absolute; pointer-events: none; z-index: 0; filter: blur(8px); }
.hero__blob--1 { top: 10px; right: 10px; width: 380px; height: 380px; max-width: 60%; background: radial-gradient(circle at center, rgba(242,116,43,.16), transparent 68%); }
.hero__blob--2 { bottom: 10px; left: 10px; width: 320px; height: 320px; max-width: 55%; background: radial-gradient(circle at center, rgba(213,95,24,.14), transparent 68%); }
.hero__grid { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px,5vw,56px); }
.hero__text { flex: 1 1 360px; min-width: min(100%,360px); }
.hero__media { flex: 1 1 380px; min-width: min(100%,320px); display: flex; justify-content: center; }
.hero__map-wrap { width: 100%; max-width: 540px; text-align: center; }
.hero__map { display: block; width: 100%; text-decoration: none; transition: transform .2s ease; }
.hero__map:hover { transform: translateY(-3px); }
.hero__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 10px; font-family: 'Caveat', cursive; font-weight: 700; font-size: 23px; }
.hero__legend span { display: inline-flex; align-items: center; gap: 9px; }
.hero__legend i { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.hero__map-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-weight: 800; font-size: 16px; color: var(--orange-dark); text-decoration: none; }
.hero__map-link:hover { color: var(--orange); }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(47,182,164,.11); color: var(--green-dark); font-weight: 800; font-size: 13px; padding: 8px 15px; border-radius: 30px; border: 1.5px solid rgba(47,182,164,.35); }
.hero h1 { font-size: clamp(2rem,5.4vw,3.5rem); line-height: 1.06; font-weight: 900; letter-spacing: -.02em; margin: 20px 0 0; text-wrap: balance; }
.hero h1 .accent { color: var(--green); white-space: nowrap; }
.hero__lead { font-size: clamp(1rem,1.7vw,1.18rem); line-height: 1.6; color: var(--muted); margin: 18px 0 0; max-width: 540px; font-weight: 500; }
.hero__cta { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero__free { font-family: 'Caveat', cursive; font-size: 22px; color: var(--green-dark); font-weight: 700; transform: rotate(-5deg); display: inline-flex; align-items: center; gap: 4px; }
.hero__free svg { stroke: var(--green-dark); }

/* ============================================================
   КАРТОЧКИ (общие)
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(24px,3.2vw,38px); align-items: stretch; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cards--4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1.5px solid var(--cream-border); border-radius: 24px 20px 26px 22px; padding: 30px 28px; box-shadow: 0 14px 34px rgba(31,41,51,.06); display: flex; flex-direction: column; }
/* кнопку прижимаем к низу карточки — выравнивание в строке */
.card .btn { margin-top: auto; }
.card:nth-child(even) { border-radius: 20px 26px 22px 24px; }
.card__icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; background: var(--cream); border-radius: 18px; }
.card h3 { font-weight: 900; margin: 18px 0 8px; }
.card p { margin: 0; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.55; }
/* Лёгкий «рукотворный» наклон (тарифы, шаги, услуги) */
.card--tilt:nth-child(3n+1) { transform: rotate(-.5deg); }
.card--tilt:nth-child(3n+2) { transform: rotate(.5deg); }
.card--tilt:nth-child(3n)   { transform: rotate(-.4deg); }

/* --- Тарифы --- */
.tariff { position: relative; transition: transform .28s cubic-bezier(.22,1,.36,1), box-shadow .28s ease; }
.tariff:nth-child(1) { transform: rotate(0deg); }
.tariff:nth-child(3) { transform: rotate(0deg); }
.tariff:hover { transform: translateY(-10px) rotate(0deg); box-shadow: 0 28px 54px rgba(31,41,51,.13); z-index: 2; }
.tariff__icon { width: 54px; height: 54px; border-radius: 16px; }
.tariff h3 { font-size: 1.5rem; margin: 18px 0 2px; }
.tariff__sub { margin: 0; color: var(--muted-2); font-weight: 600; font-size: 14px; }
.tariff__price { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 7px; }
.tariff__price .num { font-size: 2.3rem; font-weight: 900; letter-spacing: -.02em; }
.tariff__price .small { font-size: 14px; color: var(--muted-2); font-weight: 700; }
.tariff__list { list-style: none; padding: 0; margin: 14px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.tariff__list li { display: flex; gap: 9px; align-items: flex-start; font-weight: 600; font-size: 15px; }
.tariff__list .check { color: var(--orange); font-weight: 900; }
.tariff--hit { border: 2.5px solid var(--orange); box-shadow: 0 22px 46px rgba(242,116,43,.2); transform: rotate(5deg) translateY(-6px); }
.tariff--hit:hover { transform: rotate(0deg) translateY(-14px); box-shadow: 0 34px 64px rgba(242,116,43,.3); }
.tariff--hit .tariff__price .num { color: var(--orange-dark); }
.tariff__badge { position: absolute; top: -18px; right: 14px; font-family: 'Caveat', cursive; font-size: 30px; font-weight: 700; color: #fff; background: var(--green); padding: 3px 20px 6px; border-radius: 40% 60% 55% 45%; transform: rotate(6deg); box-shadow: 0 8px 16px rgba(31,143,132,.35); }

/* --- Переключатель категорий тарифов --- */
.tabs { display: inline-flex; gap: 6px; background: #fff; border: 1.5px solid var(--cream-border); border-radius: 16px 14px 17px 13px; padding: 6px; margin-bottom: clamp(20px,3vw,30px); }
.tab-btn { border: none; background: transparent; font-family: inherit; font-weight: 800; font-size: 15px; padding: 11px 22px; border-radius: 12px 10px 13px 11px; cursor: pointer; color: var(--muted-2); transition: background .15s ease, color .15s ease; }
.tab-btn:hover { color: var(--orange-dark); }
.tab-btn.is-active { background: var(--orange); color: #fff; box-shadow: 0 8px 18px rgba(242,116,43,.28); }
.tab-panel[hidden] { display: none; }

/* --- Карточка тарифа (страница /tariffs) --- */
.tcards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .tcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tcards { grid-template-columns: 1fr; } }
.tcard { position: relative; padding: 26px 24px; }
.tcard__tag { align-self: flex-start; font-weight: 800; font-size: 12px; letter-spacing: .02em; color: var(--orange-dark); background: var(--cream); border: 1.5px solid #FAD3B5; padding: 4px 11px; border-radius: 20px; margin-bottom: 14px; }
.tcard__tag--hit { color: #fff; background: var(--green); border-color: var(--green); }
.tcard__name { font-size: 1.25rem; font-weight: 900; margin: 0 0 4px; }
.tcard__speed { margin: 0 0 14px; color: var(--muted-2); font-weight: 700; font-size: 15px; }
.tcard__price { display: flex; align-items: baseline; gap: 3px; font-weight: 700; color: var(--muted-2); font-size: 15px; margin-bottom: 20px; }
.tcard__price .num { font-size: 2.1rem; font-weight: 900; letter-spacing: -.02em; color: var(--ink); }
.tcard__price .per { margin-left: 2px; }
.tcard--hit { border: 2.5px solid var(--orange); box-shadow: 0 18px 38px rgba(242,116,43,.18); }
.tcard--hit .tcard__price .num { color: var(--orange-dark); }

.tariff-notes { margin-top: clamp(20px,3vw,28px); display: flex; flex-direction: column; gap: 8px; }
.tariff-notes p { margin: 0; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.tariff-disclaimer { margin: clamp(20px,3vw,28px) 0 0; color: var(--muted-3); font-weight: 600; font-size: 13px; line-height: 1.5; }

/* --- Как подключить (шаги) --- */
.steps { position: relative; }
.step:nth-child(2) { transform: rotate(-3deg); }
.step:nth-child(3) { transform: rotate(0deg); }
.step:nth-child(4) { transform: rotate(3deg); }
.step__num { font-family: 'Caveat', cursive; font-size: 62px; font-weight: 700; color: var(--orange); line-height: .8; }
.step:nth-child(odd) .step__num { color: var(--orange-dark); }
.step h3 { font-size: 1.35rem; font-weight: 900; margin: 6px 0 8px; }
.step p { margin: 0 0 22px; color: var(--muted); font-weight: 600; font-size: 15px; line-height: 1.55; }
.step p:last-child { margin-bottom: 0; }
.steps__wire { position: absolute; top: 34px; left: 0; width: 100%; z-index: 0; opacity: .5; pointer-events: none; }

/* ============================================================
   ФОРМА ЗАЯВКИ
   ============================================================ */
.form-card { background: #fff; border: 1.5px solid var(--cream-border); border-radius: 24px 20px 26px 22px; padding: clamp(24px,4vw,36px); box-shadow: 0 14px 34px rgba(31,41,51,.06); max-width: 560px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.field input, .field textarea { width: 100%; font-family: inherit; font-size: 16px; color: var(--ink); padding: 13px 15px; border: 1.5px solid var(--cream-border); border-radius: 13px 11px 14px 10px; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,116,43,.15); }
.field textarea { resize: vertical; min-height: 90px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 13px; font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.alert--ok { background: #E7F6EC; color: #1C7A43; border: 1.5px solid #B6E2C6; }
.alert--err { background: #FDEBEB; color: #B3261E; border: 1.5px solid #F2C2BF; }
.alert--err ul { margin: 8px 0 0; padding-left: 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #FBE3CE; border-top: 1px solid #F3D3B8; padding: clamp(40px,6vw,68px) 0 0; }
.footer__grid { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px,4vw,40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: clamp(28px,4vw,48px); }
.footer__brand { max-width: 340px; }
.footer__brand-top { display: flex; align-items: center; gap: 11px; }
.footer__brand-top span { font-weight: 900; font-size: 22px; }
.footer__brand p { margin: 16px 0 0; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.6; }
.footer h4 { margin: 0 0 16px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.footer__col-links { display: flex; flex-direction: column; gap: 12px; }
.footer__col-links a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px; }
.footer__col-links a:hover { color: var(--orange); }
.footer__contacts { display: flex; flex-direction: column; gap: 13px; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.footer__contacts .phone { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 17px; }
.footer__contacts .phone:hover { color: var(--orange); }
.footer__contacts .mail { text-decoration: none; color: var(--orange-dark); font-weight: 700; }
.footer__hours { background: #fff; border: 1.5px solid var(--cream-border); border-radius: 18px 15px 19px 14px; padding: 18px 20px; }
.footer__hours p { margin: 0; font-weight: 800; font-size: 15.5px; }
.footer__hours p + p { margin-top: 7px; color: var(--muted-2); font-weight: 600; font-size: 14px; }
.footer__changelog { display: inline-block; margin-top: 14px; text-decoration: none; color: var(--orange-dark); font-weight: 800; font-size: 14px; }
.footer__changelog:hover { color: var(--orange); }
.footer__bottom { max-width: var(--max); margin: clamp(34px,5vw,52px) auto 0; padding: 22px clamp(16px,4vw,40px); border-top: 1px dashed var(--cream-dash); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer__bottom span { color: var(--muted-3); font-weight: 600; font-size: 13.5px; }
.footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal a { text-decoration: none; color: var(--muted-3); font-weight: 600; font-size: 13.5px; }
.footer__legal a:hover { color: var(--orange); }
.footer__license { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px,4vw,40px) 22px; color: var(--muted-3); font-weight: 600; font-size: 12.5px; line-height: 1.5; }
.footer__dev { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px,4vw,40px) 26px; color: var(--muted-3); font-weight: 600; font-size: 12.5px; }
.footer__dev a { color: var(--muted-2); text-decoration: none; font-weight: 700; border-bottom: 1px dashed var(--cream-dash); }
.footer__dev a:hover { color: var(--orange); }

/* --- Юридический текст (договор, документы) --- */
.legal { max-width: none; }
.legal h3 { font-size: 1.25rem; font-weight: 900; margin: 34px 0 12px; }
.legal h4 { font-size: 1.02rem; font-weight: 800; margin: 22px 0 8px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.legal p, .legal li { color: var(--muted); font-weight: 500; font-size: 15px; line-height: 1.65; }
.legal p { margin: 0 0 11px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.legal .legal__note { background: var(--cream); border: 1.5px solid var(--cream-border); border-radius: 16px; padding: 16px 20px; margin: 16px 0; }
.legal .legal__req { background: #fff; border: 1.5px solid var(--cream-border); border-radius: 18px; padding: 20px 24px; margin: 24px 0 0; }
.legal .legal__req p { margin: 0 0 6px; font-size: 14.5px; }
.legal .legal__updated { color: var(--muted-3); font-weight: 600; font-size: 13px; margin-top: 6px; }

/* --- Список документов (хаб) --- */
.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: clamp(16px,2.5vw,24px); }
.doc-item { display: flex; flex-direction: column; gap: 6px; }
.doc-item h3 { font-size: 1.18rem; font-weight: 900; margin: 14px 0 0; }
.doc-item p { margin: 0; color: var(--muted); font-weight: 600; font-size: 14px; line-height: 1.5; }
.doc-item__links { margin-top: auto; padding-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; }
.doc-item__links a { text-decoration: none; color: var(--orange-dark); font-weight: 800; font-size: 14.5px; }
.doc-item__links a:hover { color: var(--orange); }
.doc-item__soon { color: var(--muted-3); font-weight: 700; font-size: 13.5px; }
.doc-item__icon { font-size: 30px; }

/* --- Зона покрытия (/coverage) --- */
.coverage-search { position: relative; max-width: 460px; margin-bottom: clamp(20px,3vw,28px); }
.coverage-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.coverage-search input { width: 100%; box-sizing: border-box; padding: 13px 16px 13px 46px; border: 1.5px solid var(--cream-border); border-radius: 15px 13px 16px 12px; font-family: inherit; font-weight: 600; font-size: 15px; background: #fff; color: var(--ink); }
.coverage-search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,116,43,.15); }
.coverage-empty { margin: 0 0 22px; font-weight: 700; color: var(--muted); }
.coverage-empty a { color: var(--orange-dark); }
.coverage-grid { display: grid; grid-template-columns: 1fr; gap: clamp(16px,2.5vw,24px); align-items: start; }
.cov-col h3 { font-size: 1.25rem; font-weight: 900; margin: 0; }
.cov-group { margin-top: 16px; }
.cov-group h4 { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--label); margin: 0 0 10px; }
.cov-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cov-item { display: inline-flex; align-items: center; background: var(--cream); border: 1px solid var(--cream-border); border-radius: 10px; padding: 6px 11px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.cov-item em { font-style: normal; color: var(--orange-dark); font-weight: 700; font-size: 11px; margin-left: 6px; }
.cov-note { margin: 14px 0 0; font-size: 13px; color: var(--muted-2); font-weight: 600; line-height: 1.5; }
.cov-item[hidden], .cov-group[hidden], .cov-col[hidden] { display: none; }

/* --- Журнал изменений (/changelog) --- */
.cl-crumb { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-3); margin: 0 0 6px; }
.cl-crumb a { color: inherit; text-decoration: none; }
.cl-crumb a:hover { color: var(--orange); }
.changelog { position: relative; max-width: 820px; margin-top: clamp(24px,4vw,36px); padding-left: 30px; }
.changelog::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 10px; width: 2px; background: var(--cream-border); }
.cl-item { position: relative; padding-bottom: 30px; }
.cl-item::before { content: ""; position: absolute; left: -30px; top: 5px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 2.5px solid #BFD9C7; }
.cl-item--now::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 4px rgba(47,182,164,.15); }
.cl-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cl-date { color: var(--muted-3); font-weight: 700; font-size: 13px; white-space: nowrap; }
.cl-title { font-size: 1.28rem; font-weight: 900; margin: 0; }
.cl-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.cl-badge { flex-shrink: 0; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; margin-top: 2px; }
.cl-badge--new { background: rgba(47,182,164,.15); color: var(--green-dark); }
.cl-badge--improved { background: rgba(242,116,43,.15); color: var(--orange-dark); }
.cl-badge--fixed { background: rgba(31,41,51,.08); color: var(--muted); }
.cl-row p { margin: 0; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.6; }

/* Виджет «Что нового» (карточка с последней записью) */
.cl-widget { display: flex; flex-direction: column; gap: 4px; max-width: 300px; padding: 14px 16px; background: #fff; border: 1.5px solid var(--cream-border); border-radius: 16px 13px 17px 14px; box-shadow: 0 10px 26px rgba(31,41,51,.06); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.cl-widget:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(31,41,51,.10); }
.cl-widget__badge { align-self: flex-start; background: var(--orange); color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.cl-widget__date { color: var(--muted-3); font-weight: 700; font-size: 11.5px; margin-top: 3px; }
.cl-widget__title { color: var(--ink); font-weight: 800; font-size: 0.95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-widget__more { color: var(--orange-dark); font-weight: 800; font-size: 12.5px; margin-top: 3px; }
.cl-widget:hover .cl-widget__more { color: var(--orange); }
.footer .cl-widget { margin-top: 14px; }

/* --- Выпадающее меню «Сервисы» --- */
.nav-drop { position: relative; }
.nav-drop__toggle { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-drop__toggle svg { transition: transform .15s ease; }
.nav-drop:hover .nav-drop__toggle svg, .nav-drop:focus-within .nav-drop__toggle svg { transform: rotate(180deg); }
.nav-drop__menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px); min-width: 212px; background: #fff; border: 1.5px solid var(--cream-border); border-radius: 16px; box-shadow: 0 18px 40px rgba(31,41,51,.12); padding: 8px; display: flex; flex-direction: column; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease; z-index: 60; }
.nav-drop__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px); }
.nav-drop__menu a { padding: 9px 14px; border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-drop__menu a:hover { background: var(--cream); color: var(--orange-dark); }
.mm-group { display: flex; flex-direction: column; }
.mobile-menu__group { font-weight: 800; display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; border-bottom: 1px dashed var(--cream-dash); color: var(--ink); font-family: inherit; font-size: 18px; padding: 13px 6px; cursor: pointer; text-align: left; }
.mm-group__chev { transition: transform .2s ease; flex-shrink: 0; }
.mobile-menu__group[aria-expanded="true"] .mm-group__chev { transform: rotate(180deg); }
.mobile-menu__subwrap { display: none; flex-direction: column; }
.mm-group.is-open .mobile-menu__subwrap { display: flex; }
.mobile-menu .mobile-menu__sub { padding-left: 22px; font-size: 16px; color: var(--muted); }

/* --- Инструменты (Сервисы) --- */
.tool-card { background: #fff; border: 1.5px solid var(--cream-border); border-radius: 22px 18px 24px 20px; padding: clamp(22px,3vw,30px); box-shadow: 0 14px 34px rgba(31,41,51,.06); }
.tool-card__title { font-size: 1.3rem; font-weight: 900; margin: 0 0 4px; }
.tool-card__sub { margin: 0 0 16px; color: var(--muted); font-weight: 600; }
.tool-soon { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--cream); color: var(--muted-2); padding: 3px 8px; border-radius: 7px; vertical-align: middle; }
.tool-link { text-decoration: none; color: inherit; }
.tool-link:hover { border-color: var(--orange); }

/* Проверка адреса */
.addr-check { display: flex; gap: 10px; flex-wrap: wrap; }
.addr-check input { flex: 1 1 260px; min-width: 0; box-sizing: border-box; padding: 13px 16px; border: 1.5px solid var(--cream-border); border-radius: 14px; font-family: inherit; font-weight: 600; font-size: 15px; }
.addr-check input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,116,43,.15); }
.addr-result { margin-top: 16px; padding: 16px 18px; border-radius: 14px; font-weight: 700; line-height: 1.5; }
.addr-result--yes { background: rgba(47,182,164,.12); color: var(--green-dark); }
.addr-result--no { background: rgba(242,116,43,.10); color: var(--orange-dark); }
.addr-result a { color: inherit; }

/* Калькулятор */
.calc-q { margin-bottom: 20px; }
.calc-q h4 { font-size: 1rem; font-weight: 800; margin: 0 0 10px; }
.calc-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-opt { font-family: inherit; font-weight: 700; font-size: 14px; padding: 10px 16px; border: 1.5px solid var(--cream-border); background: #fff; border-radius: 12px; cursor: pointer; color: var(--ink); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.calc-opt:hover { border-color: var(--orange); }
.calc-opt.is-active { background: var(--orange); color: #fff; border-color: var(--orange); }
.calc-result { margin-top: 8px; padding: 20px 22px; background: rgba(47,182,164,.10); border-radius: 16px; }
.calc-result h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--label); }
.calc-result .calc-name { font-size: 1.4rem; font-weight: 900; }
.calc-result .calc-meta { color: var(--muted); font-weight: 700; margin: 4px 0 14px; }

/* FAQ-аккордеон */
.faq-item { border: 1.5px solid var(--cream-border); border-radius: 14px; margin-bottom: 10px; background: #fff; }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--orange); font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-weight: 600; line-height: 1.6; }

/* Спидтест */
.st-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
@media (max-width: 560px) { .st-metrics { grid-template-columns: repeat(2, 1fr); } }
.st-metric { background: #fff; border: 1.5px solid var(--cream-border); border-radius: 16px; padding: 18px 10px; display: flex; flex-direction: column; align-items: center; }
.st-metric--dl { border-color: rgba(47,182,164,.45); }
.st-metric--ul { border-color: rgba(242,116,43,.45); }
.st-val { font-size: 1.8rem; font-weight: 900; line-height: 1; }
.st-unit { font-size: 12px; color: var(--muted-2); font-weight: 700; margin-top: 3px; }
.st-lbl { font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 8px; }
.st-ip { margin-top: 14px; color: var(--muted-3); font-weight: 600; font-size: 13px; }

/* Cookie-баннер */
.cookie-banner { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; width: min(680px, calc(100% - 32px)); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; background: #fff; border: 1.5px solid var(--cream-border); border-radius: 18px; box-shadow: 0 18px 44px rgba(31,41,51,.16); padding: 16px 20px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; color: var(--muted); font-weight: 600; font-size: 13.5px; line-height: 1.5; }
.cookie-banner a { color: var(--orange-dark); font-weight: 700; }
.cookie-banner .btn { flex-shrink: 0; padding: 10px 22px; }

/* --- Чекбокс согласия в форме --- */
.field--check { display: flex; gap: 10px; align-items: flex-start; }
.field--check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--orange); }
.field--check label { font-weight: 600; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.field--check a { color: var(--orange-dark); font-weight: 700; }

/* --- Карта --- */
.map { border: 1.5px solid var(--cream-border); border-radius: 20px; overflow: hidden; margin-top: 24px; }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 960px) {
  .nav, .header__right { display: none; }
  .burger { display: flex; }
}

/* --- Новости/акции (публичные страницы) --- */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: 100%; margin-top: clamp(24px,4vw,36px); }
@media (max-width: 960px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-list { grid-template-columns: 1fr; } }
.news-card { padding: 20px 22px; background: #fff; border: 1.5px solid var(--cream-border); border-radius: 16px 13px 17px 14px; box-shadow: 0 8px 22px rgba(31,41,51,.05); transition: transform .15s ease, box-shadow .15s ease; }
.news-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(31,41,51,.10); }
.news-card__date { display: block; color: var(--muted-3); font-weight: 700; font-size: 13px; }
.news-card__title { font-size: 1.25rem; font-weight: 900; margin: 4px 0 8px; line-height: 1.25; }
.news-card__title a { color: var(--ink); text-decoration: none; }
.news-card__title a:hover { color: var(--orange-dark); }
.news-card__excerpt { margin: 0 0 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.6; }
.news-card__more { color: var(--orange-dark); font-weight: 800; font-size: 13.5px; text-decoration: none; }
.news-card__more:hover { color: var(--orange); }
.news-full { max-width: none; width: 100%; }
.news-full__body { margin-top: 18px; color: var(--ink); font-size: 16px; line-height: 1.7; }
.news-full__body p { margin: 0 0 16px; }

/* карточка новости с обложкой */
.news-card { padding: 0; overflow: hidden; }
.news-card__cover { display: block; aspect-ratio: 1/1; overflow: hidden; }
.news-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__body { padding: 18px 22px; }
.news-card:not(.news-card--img) .news-card__body { padding: 20px 22px; }
.news-full__img { display: block; width: 100%; max-width: 100%; border-radius: 14px; margin: 18px 0 6px; }

/* ===== Превью новостей на главной (3 карточки, обложка 4:3) ===== */
.news-home { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: 100%; margin-top: clamp(24px,4vw,36px); }
@media (max-width: 960px) { .news-home { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-home { grid-template-columns: 1fr; } }
.nh-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--cream-border); border-radius: 16px 13px 17px 14px; overflow: hidden; box-shadow: 0 8px 22px rgba(31,41,51,.05); transition: transform .15s ease, box-shadow .15s ease; }
.nh-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(31,41,51,.10); }
.nh-card__cover { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--cream); }
.nh-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.nh-card:hover .nh-card__cover img { transform: scale(1.04); }
/* заглушка обложки (пока картинка не загружена) */
.nh-card__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 100%;
  background: linear-gradient(135deg, #FFF6EC 0%, #FFE9D6 100%); }
.nh-card__ph-txt { font-family: 'Caveat', cursive; font-weight: 700; font-size: 1.5rem; color: var(--orange-dark); }
.nh-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 16px; }
.nh-card__title { font-size: 1.18rem; font-weight: 900; line-height: 1.25; margin: 0 0 8px; }
.nh-card__title a { color: var(--ink); text-decoration: none; }
.nh-card__title a:hover { color: var(--orange-dark); }
/* описание — ровно 2 строки с автообрезкой «…» */
.nh-card__text { margin: 0 0 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nh-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.nh-card__more { color: var(--orange-dark); font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.nh-card__more:hover { color: var(--orange); }
.nh-card__date { color: var(--muted-3); font-weight: 700; font-size: 13px; white-space: nowrap; }
