:root{
  --background: 210 20% 99%;
  --foreground: 222 60% 15%;
  --card: 0 0% 100%;
  --card-foreground: 222 60% 15%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 60% 15%;
  --primary: 197 100% 44%;
  --primary-foreground: 0 0% 100%;
  --secondary: 225 84% 25%;
  --secondary-foreground: 0 0% 100%;
  --muted: 200 60% 95%;
  --muted-foreground: 215 16% 47%;
  --accent: 200 80% 92%;
  --accent-foreground: 225 84% 25%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 210 20% 90%;
  --input: 210 20% 90%;
  --ring: 197 100% 44%;
  --radius: .75rem;
  --hero-gradient: linear-gradient(135deg, hsl(225 84% 25%) 0%, hsl(225 70% 20%) 50%, hsl(197 100% 30%) 100%);
  --card-shadow: 0 4px 24px -4px hsl(225 84% 25% / .08);
  --card-shadow-hover: 0 8px 32px -4px hsl(225 84% 25% / .15);
  --cta-glow: 0 4px 20px -2px hsl(197 100% 44% / .4);
  --section-light: 200 60% 97%;
  --success: 152 60% 45%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 100%;
  --text: hsl(var(--foreground));
  --white: hsl(var(--background));
}

body{
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

header.dolgunet-site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* WordPress admin bar offset (logged-in editors/admins) */
body.admin-bar header.dolgunet-site-header{
  top: 32px;
}

@media screen and (max-width: 782px){
  body.admin-bar header.dolgunet-site-header{
    top: 46px;
  }
}

header.dolgunet-site-header.dolgunet-header-scroll-hidden{
  transform: translate3d(0, -100%, 0);
}

@media (prefers-reduced-motion: reduce){
  header.dolgunet-site-header{
    transition-duration: 0.01ms;
  }
}

main{
  padding-top: 4rem;
}

/* Типографика заголовков страниц (не главная по front-page.php), только контент main — не трогаем CTA под футером */
body:not(.dolgunet-front-page) main h1{
  text-wrap: balance;
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.2;
  text-align: left;
}

body:not(.dolgunet-front-page) main h2{
  font-size: clamp(26px, 3.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
  text-align: left;
}

/* Заголовки внутри карточек и политики — оставляем компактные (text-xl) */
body:not(.dolgunet-front-page) main h2.text-xl{
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 1.4;
  text-wrap: unset;
}

.container-narrow{
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
}

.section-padding{
  padding: 4rem 1rem;
}
@media (min-width: 768px){
  .section-padding{
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* ========== Страница «Контакты» ========== */
.dolgunet-contacts-page__bg{
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dolgunet-contacts-page__blob{
  position: absolute;
  border-radius: 50%;
  filter: blur(76px);
}

.dolgunet-contacts-page__blob--a{
  width: min(380px, 65vw);
  height: min(380px, 65vw);
  top: -10%;
  right: -6%;
  background: hsl(var(--primary) / 0.16);
}

.dolgunet-contacts-page__blob--b{
  width: min(320px, 55vw);
  height: min(320px, 55vw);
  bottom: 18%;
  left: -10%;
  background: hsl(225 84% 25% / 0.08);
}

.dolgunet-contacts-page__blob--c{
  width: min(220px, 40vw);
  height: min(220px, 40vw);
  top: 42%;
  right: 18%;
  background: hsl(var(--primary) / 0.08);
}

.dolgunet-contacts-lead{
  text-wrap: balance;
}

.dolgunet-contacts-breadcrumb a{
  text-decoration: none;
}

.dolgunet-contacts-form-card.glass-card:hover{
  box-shadow: 0 20px 60px -24px hsl(225 84% 25% / 0.22);
}

.dolgunet-contacts-form-grid{
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.dolgunet-contacts-form-col{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

@media (min-width: 1024px){
  .dolgunet-contacts-form-grid{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 2rem 2.75rem;
    align-items: start;
  }
}

.dolgunet-contacts-label{
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.4rem;
}

.dolgunet-contacts-input,
.dolgunet-contacts-textarea{
  width: 100%;
  padding: 0.9rem 1.15rem;
  border-radius: 0.875rem;
  border: 2px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dolgunet-contacts-input::placeholder,
.dolgunet-contacts-textarea::placeholder{
  color: hsl(var(--muted-foreground));
}

.dolgunet-contacts-input:focus,
.dolgunet-contacts-textarea:focus{
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

.dolgunet-contacts-textarea{
  resize: vertical;
  min-height: 11rem;
}

.dolgunet-contacts-consent a{
  font-weight: 600;
}

.dolgunet-contacts-submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.35rem;
  border-radius: 0.875rem;
  border: none;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
  box-shadow: var(--cta-glow);
}

.dolgunet-contacts-submit:hover:not(:disabled){
  filter: brightness(1.06);
}

.dolgunet-contacts-submit:disabled{
  opacity: 0.65;
  cursor: not-allowed;
}

main .dolgunet-contacts-strip .dolgunet-contacts-strip-heading{
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: hsl(var(--secondary));
  text-wrap: balance;
  margin: 0 0 0.75rem 0;
}

.dolgunet-contacts-channels{
  align-items: stretch;
}

.dolgunet-contacts-channel{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem 1.15rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--card));
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 100%;
}

.dolgunet-contacts-channel:hover{
  box-shadow: var(--card-shadow-hover);
  border-color: hsl(var(--border));
}

@media (prefers-reduced-motion: reduce){
  .dolgunet-contacts-channel:hover{
    transform: none;
  }
}

.dolgunet-contacts-channel__icon{
  width: 2.85rem;
  height: 2.85rem;
  min-width: 2.85rem;
  border-radius: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
}

.dolgunet-contacts-channel__icon--mail{
  background: hsl(38 92% 50% / 0.12);
  color: hsl(var(--warning));
}

.dolgunet-contacts-channel__icon--doc{
  background: hsl(197 100% 44% / 0.1);
  color: hsl(197 100% 36%);
}

.dolgunet-contacts-channel__body{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dolgunet-contacts-channel__title{
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--secondary));
  line-height: 1.25;
}

.dolgunet-contacts-channel__text{
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.45;
  color: hsl(var(--foreground));
}

.dolgunet-contacts-channel__text--muted{
  color: hsl(var(--muted-foreground));
  font-size: 0.94rem;
}

.dolgunet-contacts-channel__link{
  color: hsl(var(--primary));
  font-weight: 700;
  text-decoration: none;
}

.dolgunet-contacts-channel__link:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dolgunet-contacts-channel__meta{
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
}

a.dolgunet-contacts-channel__meta,
.dolgunet-contacts-channel__meta--action{
  color: hsl(var(--secondary));
  font-weight: 600;
  font-size: 0.875rem;
}

a.dolgunet-contacts-channel__meta:hover,
.dolgunet-contacts-channel__meta--action:hover{
  text-decoration: underline;
}

.dolgunet-contacts-channel__cta{
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
  width: fit-content;
}

.dolgunet-contacts-channel__cta:hover{
  color: hsl(var(--primary) / 0.85);
}

.dolgunet-contacts-requisites{
  padding: 1.35rem 1.35rem;
  border-radius: 1rem;
  border: 1px dashed hsl(var(--border));
  background: hsl(var(--muted) / 0.25);
}

.glass-card{
  border-radius: 1rem;
  border-width: 1px;
  border-color: hsl(var(--border) / .5);
  background-color: hsl(var(--card));
  box-shadow: var(--card-shadow);
  transition: all .3s ease-out;
  margin-top: 2rem;
}

.glass-card:hover{
  box-shadow: var(--card-shadow-hover);
}

.flex-direction-column{
  flex-direction: column;
}

.dolgunet-cta-lead{
  max-width: 400px;
}

/* Отступ между полями и кнопкой «Перезвоните мне» */
.mtop-28rem{
  margin-top: 2.8rem;
}

/* Модалки квиза и обратного звонка: прокрутка содержимого карточки, если не помещается */
#dolgunet-quiz-modal,
#dolgunet-callback-modal{
  align-items: flex-start;
  justify-content: center;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}

#dolgunet-quiz-modal .glass-card,
#dolgunet-callback-modal .glass-card{
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: auto;
  max-height: min(92vh, calc(100dvh - 2rem));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#dolgunet-callback-modal p.text-xs.text-muted-foreground{
  margin-top: 3px;
}

#dolgunet-callback-modal label{
  line-height: 1;
}

#dolgunet-quiz-modal label{
  line-height: 1;
}

#dolgunet-quiz-modal p.text-xs.text-muted-foreground{
  margin-top: 3px;
}

#dolgunet-quiz-step-3 p{
  text-wrap: balance;
}

button#dolgunet-quiz-next svg{
  transform: rotate(-90deg);
}

/* Problems section */
.dolgunet-problems-section{
  background: linear-gradient(180deg, hsl(var(--section-light) / .6) 0%, hsl(var(--background)) 100%);
}

.dolgunet-problems-header{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.75rem;
  align-items: center;
}

@media (min-width: 768px){
  .dolgunet-problems-header{
    column-gap: 1.25rem;
    row-gap: 1rem;
  }
}

.dolgunet-problems-header-icon{
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.dolgunet-problems-header-title{
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.dolgunet-problems-header-sub{
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.dolgunet-problems-layout{
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.25rem;
  margin-bottom: 2rem;
}

.dolgunet-problems-left{
  display: grid;
  gap: 1.25rem;
}

.dolgunet-problems-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px){
  .dolgunet-problems-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px){
  .dolgunet-problems-layout{
    grid-template-columns: 60% 40%;
    align-items: start;
    column-gap: 2.25rem;
    margin-bottom: 2.25rem;
  }

  .dolgunet-problems-left{
    order: 1;
  }

  .dolgunet-problems-header{
    max-width: 100%;
    padding-bottom: 0;
  }

  .dolgunet-problems-image-wrap{
    order: 2;
    width: 100%;
    max-width: none;
    aspect-ratio: 4 / 3;
    height: 100%;
  }

  .dolgunet-problems-grid{
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.25rem;
  }
}

.dolgunet-problems-image-wrap{
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 40px -8px hsl(225 84% 25% / .12), 0 4px 12px -4px hsl(225 84% 25% / .08);
  aspect-ratio: 1;
  width: 100%;
  max-height: none;
}

@media (max-width: 1023px){
  .dolgunet-problems-image-wrap{
    max-width: 22rem;
    justify-self: center;
  }
}

.dolgunet-problems-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Isolated nnn-block styles */
.nnn-problems-section{
  background: #f7f8fb;
  padding: 6rem 1rem 7rem;
}
.nnn-problems-container{
  max-width: 1120px;
  margin: 0 auto;
}
.nnn-problems-top{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.25rem;
}

@media (max-width: 960px){
  .nnn-problems-top{
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
h2{
  margin: auto;
}

h2.nnn-problems-title{
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2.dolgunet-section-heading{
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

div#solution h2{
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 575px;
  text-wrap: balance;
}

@media (min-width: 1024px){
  div#solution h2{
    max-width: 750px;
  }
}

div#solution p{
  text-wrap: balance;
}

.nnn-problems-section h2.nnn-problems-title{
  margin: 0;
  text-align: left;
}

.dolgunet-outcomes-title{
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.dolgunet-outcomes-subtitle{
  line-height: 1.4;
  margin-bottom: 2.6rem;
}

.dolgunet-outcomes-list{
  column-gap: 3rem;
  row-gap: 1rem;
  text-wrap: balance;
}

.dolgunet-outcomes-list > div > p:first-child{
  text-transform: uppercase;
  color: #0a2575;
}

.dolgunet-outcomes-item{
  font-size: 1rem;
  line-height: 1.4em;
}

.dolgunet-outcomes-cta-wrap{
  margin: 2.8rem auto;
}

@media (max-width: 768px){
  .dolgunet-outcomes-title{
    font-size: 2.2rem;
  }

  .dolgunet-outcomes-subtitle{
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
  }

}
p.nnn-problems-subtitle{
  margin-top: 1rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: #6f7789;
  text-wrap: balance;
}
.nnn-problems-image-wrap{
  overflow: hidden;
  border-radius: 24px;
}
.nnn-problems-image{
  width: 100%;
  height: 390px;
  object-fit: cover;
  display: block;
}
.nnn-problems-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nnn-problems-grid > li{
  margin: 0;
  min-width: 0;
}

@media (max-width: 1024px){
  .nnn-problems-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 545px){
  .nnn-problems-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px){
  .nnn-problems-image{
    height: 280px;
  }
}
.nnn-problem-card{
  width: 100%;
  height: 100%;
  border: 1px solid #e3e7ee;
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: all .2s ease;
  box-sizing: border-box;
}
.nnn-problem-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 27, 57, 0.1);
}

button.nnn-problem-card.dolgunet-quiz-open svg{
  stroke: #00a1e1;
}

/* Карточки в сетке проблем — как в макете: иконка слева в голубом квадрате, текст справа */
.nnn-problems-grid .nnn-problem-card{
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 18px;
  padding: 1.15rem 1.35rem;
  border: 1px solid #e5eaf2;
}

.nnn-problems-grid .nnn-problem-card:hover{
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 28px rgba(13, 27, 57, 0.09);
}

.nnn-problems-grid .nnn-problem-icon{
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: #ebf0f7;
  color: #00214d;
}

.nnn-problems-grid .nnn-problem-icon svg{
  width: 22px;
  height: 22px;
}

.nnn-problems-grid .nnn-problem-card-body{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
  text-align: left;
}

.nnn-problems-grid .nnn-problem-card h3{
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0f2d6a;
}

.nnn-problems-grid .nnn-problem-card p{
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #64748b;
}
.nnn-problem-card h3{
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f2d6a;
}
.nnn-problem-card p{
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: rgb(111, 119, 137);
}
.nnn-problem-link{
  margin-top: 0.85rem;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a3563;
  opacity: .8;
}
.nnn-problems-cta-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2.8rem;
}
.nnn-problems-cta{
  min-height: 56px;
  padding: 0.9rem 2.4rem;
  border-radius: 14px;
  border: none;
  background: #0a1f4c;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(10, 31, 76, 0.25);
  transition: filter .2s ease, transform .2s ease;
}
button.solution{
  margin-top: 2.8rem;
  min-height: 56px;
  padding: 0.9rem 2.4rem;
  border-radius: 14px;
  border: none;
  background: #0a1f4c;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(10, 31, 76, 0.25);
  transition: filter .2s ease, transform .2s ease;
}
button.solution:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.nnn-problems-cta:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.nnn-problems-cta-note{
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #667085;
}
.dolgunet-problem-card{
  border-color: hsl(var(--border) / .6);
  gap: 0.625rem;
  align-items: flex-start;
}

.dolgunet-problem-card > .flex-shrink-0{
  margin-top: 0.125rem;
}

.dolgunet-problem-card h3{
  margin-top: 0;
  line-height: 1.25;
}

.dolgunet-problem-card:hover{
  transform: translateY(-2px);
}

.dolgunet-image-placeholder{
  border-style: dashed;
}

.dolgunet-image-placeholder-box{
  border: 1px dashed hsl(var(--primary) / .45);
  background: hsl(var(--primary) / .08);
  color: hsl(var(--secondary));
  border-radius: .75rem;
  padding: .65rem .8rem;
  font-size: .85rem;
  font-weight: 700;
}

.steps-grid{
  display: flex;
  flex-direction: column-reverse;
  gap: 2rem;
}

.steps-grid > div:first-child{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Шаги: как эталон — step-num | обёртка с h3+p (одна ячейка сетки справа) */
.steps-grid .step.nnn-problem-card{
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  height: auto;
  cursor: default;
  box-sizing: border-box;
  background: #fff;
}

.steps-grid .step.nnn-problem-card .step-num{
  grid-column: 1;
  grid-row: 1;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 91, 169, 0.12);
  color: #00a1e1;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.steps-grid .step.nnn-problem-card > div:not(.step-num){
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.steps-img{
  height: 100%;
  line-height: 0;
}

.steps-img img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: right;
}

.dolgunet-cases-figure{
  margin: 3rem auto;
  border: none !important;
  box-shadow: none !important;
}

@media (min-width: 1024px){
  .dolgunet-cases-figure{
    max-width: 600px;
  }
}

.dolgunet-cases-image{
  display: block;
}

.dolgunet-cases-lead{
  text-wrap: balance;
}

/* «Наши гарантии»: та же схема, что у шагов — иконка | div(h3+p) */
.dolgunet-guarantee-card{
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.35rem;
  transition: all .2s ease;
}

.dolgunet-guarantee-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 27, 57, 0.1);
}

.dolgunet-guarantee-card .dolgunet-guarantee-icon{
  grid-column: 1;
  grid-row: 1;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.dolgunet-guarantee-card .dolgunet-guarantee-icon svg{
  width: 1.75rem;
  height: 1.75rem;
}

.dolgunet-guarantee-card .dolgunet-guarantee-body{
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dolgunet-guarantee-body h3{
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.25;
  font-weight: 700;
  color: #0f2d6a;
}

.dolgunet-guarantee-body p{
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.dolgunet-team-grid{
  grid-template-columns: 1fr;
}

@media (min-width: 768px){
  .dolgunet-team-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Три карточки в 2 колонки: нижняя по центру (ширина как у одной ячейки; gap-12 = 3rem) */
@media (min-width: 768px) and (max-width: 1023px){
  .dolgunet-team-grid article:last-child:nth-child(3){
    grid-column: 1 / -1;
    max-width: calc((100% - 3rem) / 2);
    justify-self: center;
  }
}

@media (min-width: 1024px){
  .dolgunet-team-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

div#team h2{
  max-width: 750px;
}

article.dolgunet-team-card{
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border-width: 1px;
  border-style: solid;
  border-color: hsl(var(--border) / 0.5);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

article.dolgunet-team-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
}

.dolgunet-team-card-media{
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
}

.dolgunet-team-photo{
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dolgunet-team-card-body{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.dolgunet-team-name{
  margin: 0 0 0.35rem;
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.2;
  color: hsl(224.86deg 84.25% 24.9%);
}

.dolgunet-team-role{
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
  color: #0a2575;
}

.dolgunet-team-bio{
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.45;
  color: #6f7789;
}

.dolgunet-team-divider{
  margin: 0 0 1.25rem;
  border: 0;
  border-top: 1px solid #e8ecf2;
}

.dolgunet-team-stats{
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  margin-top: auto;
}

.dolgunet-team-stat{
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dolgunet-team-stat-value{
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  color: hsl(224.86deg 84.25% 24.9%);
}

.dolgunet-team-stat-label{
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #6f7789;
}

.dolgunet-team-capacity{
  border-color: hsl(var(--primary) / .25);
  background: hsl(var(--primary) / .06);
}

.dolgunet-case-pdf-link{
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  margin-top: .9rem;
  font-size: .84rem;
  font-weight: 600;
  color: hsl(var(--secondary));
  text-decoration: none;
}

.dolgunet-case-pdf-link:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dolgunet-case-pdf-link svg{
  color: hsl(var(--destructive));
}

.dolgunet-case-pdf-badge{
  display: inline-flex;
  align-items: center;
  padding: .05rem .3rem;
  border-radius: .3rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: hsl(var(--destructive));
  border: 1px solid hsl(var(--destructive) / .55);
}

.dolgunet-case-card-body{
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dolgunet-case-metric{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px dashed #cbcbcb;
  padding-bottom: .5rem;
}

.dolgunet-case-metric-label{
  flex-shrink: 0;
  font-size: .875rem;
  line-height: 1.25;
  color: hsl(var(--muted-foreground));
}

.dolgunet-case-amount{
  flex-shrink: 0;
  text-align: right;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.dolgunet-case-amount--debt{
  font-size: 1.5rem;
  color: hsl(var(--destructive));
}

.dolgunet-case-amount--written-off{
  font-size: 1.125rem;
  color: hsl(var(--success));
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-underline-offset: .12em;
}

.dolgunet-case-term-block{
  padding-top: .75rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.dolgunet-case-term-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .875rem;
}

.dolgunet-case-term-value{
  font-weight: 700;
  font-size: 1rem;
  color: hsl(var(--foreground));
}

.dolgunet-case-copy-wrap{
  margin-top: 0;
}

.dolgunet-case-kad-link{
  display: inline-block;
  max-width: 100%;
  font-size: .875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.4;
}

.dolgunet-case-kad-link:hover{
  color: hsl(var(--primary));
  filter: brightness(0.92);
}

.dolgunet-case-header{
  position: relative;
  overflow: hidden;
}

.dolgunet-case-stamp{
  position: absolute;
  top: .55rem;
  right: .55rem;
  width: 86px;
  height: 86px;
  transform: rotate(-10deg);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.92);
}

.dolgunet-case-stamp svg{
  width: 100%;
  height: 100%;
  display: block;
}

.dolgunet-case-stamp svg circle,
.dolgunet-case-stamp svg polyline,
.dolgunet-case-stamp svg path{
  stroke: currentColor;
}

.dolgunet-case-stamp text{
  fill: #fff;
  font-weight: 900;
}

.dolgunet-cases-swiper{
  padding-bottom: 2.5rem;
}

.dolgunet-cases-swiper .swiper-slide{
  height: auto;
}

.dolgunet-cases-swiper-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 4rem;
}

.dolgunet-cases-prev,
.dolgunet-cases-next{
  position: static !important;
  width: 34px !important;
  height: 34px !important;
  margin-top: 0 !important;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--secondary)) !important;
}

.dolgunet-cases-prev::after,
.dolgunet-cases-next::after{
  font-size: 12px !important;
  font-weight: 800;
}

.dolgunet-cases-pagination{
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  width: auto !important;
}

.dolgunet-cases-counter{
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  white-space: nowrap;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  color: hsl(var(--secondary));
}

.dolgunet-cases-pagination .swiper-pagination-bullet{
  width: 8px;
  height: 8px;
  background: hsl(var(--muted-foreground));
  opacity: .3;
}

.dolgunet-cases-pagination .swiper-pagination-bullet-active{
  background: hsl(var(--primary));
  opacity: 1;
}

@media (max-width: 768px){
  .steps-img{
    max-width: 100%;
  }

  .steps-img img{
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: bottom;
  }
}

@media (min-width: 1024px){
  .steps-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    column-gap: 2rem;
  }

  .steps-grid > div:first-child{
    gap: 1rem;
    min-width: 0;
  }

  .steps-img{
    margin: 0 !important;
    max-width: none;
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .steps-img img{
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }
}

.hero-gradient{
  background: var(--hero-gradient);
}

section.hero-gradient h2{
  font-size: clamp(32px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 550px;
}

.dolgunet-hero-video-wrap{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}

.dolgunet-hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  opacity:0.85;
}

.dolgunet-hero-video-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  /* Vignette with #041853 only on edges, transparent center */
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.06) 26%, rgba(4,24,83,0.10) 56%, rgba(4,24,83,0.42) 100%),
    linear-gradient(180deg, #04185366 0%, #04185300 24%, #04185300 76%, #04185366 100%),
    linear-gradient(90deg, #04185366 0%, #04185300 28%, #04185300 72%, #04185366 100%);
  box-shadow:
    inset 0 0 120px rgba(0,0,0,0.68),
    inset 0 0 260px rgba(0,0,0,0.40);
}

.dolgunet-hero-badge{
  margin-top: 5em;
}

.dolgunet-hero-subtitle-gradient{
  background: linear-gradient(
    90deg,
    #04185300 0%,
    #04185322 14%,
    #04185330 34%,
    #04185330 66%,
    #04185322 86%,
    #04185300 100%
  );
}

.dolgunet-hero-debts{
  font-size: 1.25rem;
  text-transform: capitalize;
}

p.dolgunet-hero-disclaimer{
  margin-top: 1.5rem;
  color: #c9d8e5;
  font-size: clamp(12px, 1.4vw, 14px);
}

.animate-fade-up h1{
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin: 0 auto 28px;
}

.text-primary-foreground\/70{
  color: hsl(0deg 0% 100% / 70%);
}

/* Две строки заголовка: первая не рвётся посередине */
.dolgunet-hero-title-line1{
  white-space: nowrap;
}

.dolgunet-hero-title-line2{
  display: block;
}

.dolgunet-hero-title-break{
  display: block;
}

.sepa{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

p.dolgunet-hero-subtitle{
  font-size: clamp(18px, 1.6vw, 18px);
  color: #dce4ef;
  max-width: 440px;
  margin: 0 auto 36px;
}

.animate-fade-up{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Оверлей поверх видео */
.hero-gradient::after{
  content: "";
  position: absolute;
  inset: 0;
  background: #0a3563;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

/* Видео остаётся абсолютным */
.dolgunet-hero-video-wrap{
  position: absolute !important;
  z-index: 0 !important;
}

.dolgunet-hero-content-wrap{
  margin-top: 3rem;
}

/* Внутренняя колонка героя (56rem — в export нет max-w-4xl) */
.dolgunet-hero-inner{
  max-width: 56rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Колонка героя во flex-секции: иначе на узких экранах контент «вылезает» вправо */
.hero-gradient > .dolgunet-hero-content-wrap{
  flex: 1 1 auto;
  min-width: 0;
}

.dolgunet-hero-inner .animate-fade-up{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
}

.dolgunet-hero-inner .animate-fade-up > *{
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Разделитель перед доверием */
.dolgunet-hero-meta{
  text-decoration: underline;
  font-size: 14px;
  text-underline-offset: 3px;
  font-weight: 500;
  border-top: 1px solid rgb(201 216 229);
  padding-top: 1.5em;
  justify-content: center;
  width: 100%;
}

.dolgunet-hero-primary-btn{
  word-spacing: 2px;
}

@media (max-width: 768px){
  .dolgunet-hero-title{
    overflow-wrap: break-word !important;
    word-break: normal;
  }

  /* nowrap + крупный шрифт = обрезка справа на телефонах */
  .dolgunet-hero-title-line1{
    white-space: normal;
    text-wrap: balance;
  }

  .dolgunet-hero-meta{
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .dolgunet-hero-meta > div{
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }

  .dolgunet-hero-meta > div span{
    white-space: normal;
    text-align: center;
  }

  .dolgunet-hero-disclaimer{
    max-width: 100% !important;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Hidden by default; enabled only on very small screens */
.dolgunet-hero-title-mobile-break{
  display: none;
}

@media (max-width: 989px){
  .dolgunet-hero-content-wrap{
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .dolgunet-hero-badge{
    margin-top: 0 !important;
    margin-bottom: 1rem !important;
  }

  .dolgunet-hero-title-mobile-break{
    display: none;
  }

  .dolgunet-hero-title-period{
    white-space: nowrap;
    margin-left: 0.22em;
  }

  .dolgunet-hero-actions{
    flex-direction: column !important;
    gap: 1.25rem !important;
  }

  .dolgunet-hero-actions > button,
  .dolgunet-hero-actions > a{
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px){
  .dolgunet-hero-content-wrap{
    --dolgunet-hero-title-size: 2.55rem;
  }

  .dolgunet-hero-title-period{
    display: block;
    white-space: nowrap;
    margin-left: 0 !important;
  }

  .dolgunet-hero-actions > button,
  .dolgunet-hero-actions > a{
    font-size: 1rem !important;
  }
}

@media (max-width: 551px){
  .dolgunet-hero-content-wrap{
    --dolgunet-hero-title-size: 2.55rem;
  }

  .dolgunet-hero-badge{
    margin-top: 4em !important;
  }

  /* On very small screens, enforce stable line breaks */
  .dolgunet-hero-title-mobile-break{
    display: block !important;
  }

  .dolgunet-hero-title-period{
    display: block;
    white-space: nowrap;
    margin-left: 0 !important;
  }
}

@media (min-width: 768px){
  .dolgunet-hero-content-wrap{
    --dolgunet-hero-title-size: 3rem;
  }

  .md\:text-5xl{
    line-height: 1;
  }

  .dolgunet-hero-badge{
    margin-top: 0 !important;
  }

  .dolgunet-hero-primary-btn{
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
}

@media (min-width: 1024px){
  .dolgunet-hero-content-wrap{
    --dolgunet-hero-title-size: 3.5rem;
  }
}

.cta-glow{
  box-shadow: var(--cta-glow);
}

.dolgunet-quiz-scarcity-note{
  padding: .75rem .875rem;
  border-radius: .75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .6);
  color: hsl(var(--foreground) / .75);
}

.dolgunet-quiz-resource-note{
  display: none;
  padding: .75rem .875rem;
  border-radius: .75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / .45);
}

.dolgunet-quiz-resource-note-title{
  margin: 0 0 .25rem;
  font-size: .9rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.dolgunet-quiz-resource-note-text{
  margin: 0;
  font-size: .85rem;
  line-height: 1.45;
  color: hsl(var(--foreground) / .75);
}

@media (prefers-reduced-motion: reduce){
  .dolgunet-hero-video{
    display:none;
  }
}

@keyframes fadeUp{
  from{opacity:0; transform: translateY(24px);}
  to{opacity:1; transform: translateY(0);}
}

.animate-fade-up{
  animation: fadeUp .6s ease-out forwards;
  opacity: 0;
}

.gap-12{
  column-gap: 2rem;
  row-gap: 3rem;
}

.text-xs{
  font-size: 0.85rem;
  line-height: 1.4;
}

.text-sm{
  font-size: 1rem;
  line-height: 1.4em;
}

.text-base{
  font-size: 1.25rem;
  line-height: 1.5rem;
}

.text-lg{
  font-size: 1.2rem;
  line-height: 1.4;
}

section.section-padding.hero-gradient.relative.overflow-hidden{
  margin: 0;
}

.dolgunet-hero-divider{
  height: 1px;
  max-width: 520px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 100%);
}

.dolgunet-policy-content section{
  margin-bottom: 1rem;
}
.animate-fade-up-delay-1{
  animation: fadeUp .6s ease-out .15s forwards;
  opacity: 0;
}
.animate-fade-up-delay-2{
  animation: fadeUp .6s ease-out .3s forwards;
  opacity: 0;
}

.dolgunet-faq-answer[hidden]{
  display: none !important;
}

.dolgunet-faq-answer{
  margin-bottom: 1.75rem;
}

.dolgunet-faq-answer p{
  margin-bottom: .85rem;
}

.dolgunet-consent{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.dolgunet-consent.hidden{
  display: none !important;
}

.dolgunet-consent-inner{
  background: rgba(8, 18, 40, 0.94);
  color: rgba(255, 255, 255, 0.9);
  max-width: 960px;
  width: 100%;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 24px 60px rgba(8, 18, 40, 0.35);
  font-size: 0.95rem;
  line-height: 1.45;
}

.dolgunet-consent-actions{
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.dolgunet-consent-actions a{
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dolgunet-consent-accept{
  background: #1f8fd1;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.dolgunet-consent-accept:hover{
  filter: brightness(1.05);
}

@media (max-width: 768px){
  .dolgunet-consent-inner{
    flex-direction: column;
    align-items: flex-start;
  }

  .dolgunet-consent-actions{
    width: 100%;
    justify-content: space-between;
  }
}

nav.dolgunet-header-desktop-nav{
  font-size: 14px;
}


.dolgunet-mobile-drawer-nav .dolgunet-header-mobile-nav-link{
  font-size: 1rem;
  line-height: 1.35;
  border-radius: calc(var(--radius) - 2px);
  margin-left: -0.35rem;
  margin-right: -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.dolgunet-mobile-drawer-nav .dolgunet-header-mobile-nav-link:hover{
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.55);
}

.dolgunet-mobile-drawer-nav .dolgunet-header-mobile-nav-link:active{
  background: hsl(var(--muted) / 0.75);
}

.dolgunet-mobile-drawer-nav .dolgunet-header-mobile-nav-link svg{
  transition: transform 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.dolgunet-mobile-drawer-nav .dolgunet-header-mobile-nav-link:hover svg{
  transform: translateX(4px);
  color: hsl(var(--foreground));
}

/* Мобильная шторка и оверлей (явные стили — не зависят от purge Tailwind / arbitrary классов) */
.dolgunet-mobile-overlay{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.52);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.dolgunet-mobile-menu-open .dolgunet-mobile-overlay{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#dolgunet-mobile-nav.dolgunet-header-mobile-nav{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 22rem;
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: -12px 0 40px -8px rgba(15, 23, 42, 0.14);
  border-left: 1px solid hsl(var(--border) / 0.55);
  background: hsl(var(--card));
}

body.dolgunet-mobile-menu-open #dolgunet-mobile-nav.dolgunet-header-mobile-nav{
  transform: translateX(0);
  pointer-events: auto;
}

.dolgunet-mobile-drawer-top{
  padding-top: max(0.25rem, env(safe-area-inset-top));
}

.dolgunet-mobile-drawer-phone-row{
  column-gap: 1rem;
  row-gap: 0.35rem;
}

@media (min-width: 1025px){
  .dolgunet-mobile-overlay{
    display: none !important;
  }
}

@media (min-width: 1025px) and (orientation: landscape) and (max-height: 1024px) and (max-width: 1366px){
  .dolgunet-mobile-overlay{
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce){
  .dolgunet-mobile-overlay,
  #dolgunet-mobile-nav.dolgunet-header-mobile-nav,
  .dolgunet-mobile-drawer-nav .dolgunet-header-mobile-nav-link svg{
    transition-duration: 0.01ms;
  }
}

/* Шапка: бургер при ширине до 1024px включительно (iPad Pro портрет); полоска ссылок с 1025px; в альбоме на планшетах — отдельное правило */
.dolgunet-header-mobile-toggle{
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

@media (max-width: 1024px){
  .dolgunet-header-desktop-nav,
  .dolgunet-header-desktop-actions{
    display: none !important;
  }

  .dolgunet-header-mobile-toggle{
    display: inline-flex !important;
  }

  .dolgunet-header-mobile-nav{
    display: flex !important;
    flex-direction: column;
  }
}

@media (min-width: 1025px){
  .dolgunet-header-desktop-nav,
  .dolgunet-header-desktop-actions{
    display: flex !important;
  }

  .dolgunet-header-mobile-toggle,
  .dolgunet-header-mobile-nav{
    display: none !important;
  }
}

/* Альбом планшета / «широкий короткий» вьюпорт: не показываем горизонтальное меню */
@media (min-width: 1025px) and (orientation: landscape) and (max-height: 1024px) and (max-width: 1366px){
  .dolgunet-header-desktop-nav,
  .dolgunet-header-desktop-actions{
    display: none !important;
  }

  .dolgunet-header-mobile-toggle{
    display: inline-flex !important;
  }

  .dolgunet-header-mobile-nav{
    display: flex !important;
    flex-direction: column;
  }
}

/* ── Mobile menu (dolgunet-mm) ─────────────────────────────────────── */

.dolgunet-mm{
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

.dolgunet-mm.dolgunet-mm--open{
  pointer-events: auto;
}

/* Подложка */
.dolgunet-mm__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.dolgunet-mm--open .dolgunet-mm__backdrop{
  opacity: 1;
  pointer-events: auto;
}

/* Панель */
.dolgunet-mm__panel{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  background: hsl(var(--card));
  border-left: 1px solid hsl(var(--border) / 0.5);
  box-shadow: -16px 0 48px -8px rgba(15, 23, 42, 0.18);
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  will-change: transform;
}

.dolgunet-mm--open .dolgunet-mm__panel{
  transform: translateX(0);
}

/* Шапка панели */
.dolgunet-mm__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  height: 4rem;
  padding: 0 1rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  max-width: 355px;
}

.dolgunet-mm__logo{
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: hsl(var(--secondary));
  line-height: 1;
  min-width: 0;
  overflow: hidden;
}

.dolgunet-mm__logo span{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dolgunet-mm__logo svg{
  width: 1.625rem;
  height: 1.625rem;
  flex-shrink: 0;
  color: hsl(var(--primary));
}

.dolgunet-mm__close{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  margin-right: -0.375rem;
  transition: background 0.15s ease;
}

.dolgunet-mm__close:hover{
  background: hsl(var(--muted) / 0.65);
}

.dolgunet-mm__close svg{
  width: 1.375rem;
  height: 1.375rem;
}

/* Навигация */
.dolgunet-mm__nav{
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.375rem 0;
}

.dolgunet-mm__nav a{
  display: block;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border-bottom: 1px solid hsl(var(--border) / 0.45);
  transition: color 0.15s ease, background 0.15s ease;
}

.dolgunet-mm__nav a:last-child{
  border-bottom: none;
}

.dolgunet-mm__nav a:hover{
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.5);
}

.dolgunet-mm__nav a:active{
  background: hsl(var(--muted) / 0.8);
}

/* Футер */
.dolgunet-mm__foot{
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.dolgunet-mm__phone{
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.25;
  transition: color 0.15s ease;
}

.dolgunet-mm__phone:hover{
  color: hsl(var(--primary));
}

.dolgunet-mm__phone small{
  font-size: 0.8125rem;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  line-height: 1.4;
}

.dolgunet-mm__cta{
  width: 100%;
  padding: 0.825rem 1.25rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.dolgunet-mm__cta:hover{
  filter: brightness(1.08);
}

/* Скрываем на десктопе */
@media (min-width: 1025px){
  .dolgunet-mm{
    display: none !important;
  }
}

/* На планшете-альбом показываем снова (бургер активен) */
@media (min-width: 1025px) and (orientation: landscape) and (max-height: 1024px) and (max-width: 1366px){
  .dolgunet-mm{
    display: block !important;
  }
}

@media (prefers-reduced-motion: reduce){
  .dolgunet-mm__backdrop,
  .dolgunet-mm__panel{
    transition-duration: 0.01ms;
  }
}

/* ── Global success dialog (aligned with quiz success block) ─────── */
.dolgunet-toast{
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.dolgunet-toast.dolgunet-toast--show{
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}
.dolgunet-toast__backdrop{
  position: absolute;
  inset: 0;
  background: hsl(var(--foreground) / 0.5);
  backdrop-filter: blur(6px);
}
.dolgunet-toast__panel{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  padding: 2.25rem 2rem 2rem;
}
.dolgunet-toast__body{
  text-align: center;
  padding-top: 0.25rem;
}
.dolgunet-toast__icon-wrap{
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
}
.dolgunet-toast__check{
  width: 4rem;
  height: 4rem;
  color: hsl(var(--success));
}
.dolgunet-toast__title{
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: hsl(var(--foreground));
}
.dolgunet-toast__sub{
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  color: hsl(var(--muted-foreground));
}
.dolgunet-toast__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.75rem 1.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.dolgunet-toast__cta:hover{
  filter: brightness(1.1);
}
.dolgunet-toast__x{
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.dolgunet-toast__x:hover{
  color: hsl(var(--foreground));
  background: hsl(var(--muted) / 0.45);
}
@media (prefers-reduced-motion: reduce){
  .dolgunet-toast{
    transition-duration: 0.01ms;
  }
}

/* Hide footer CTA when contacts section is present */
body:has(.dolgunet-contacts-page) #dolgunet-footer-cta{
  display: none;
}

body.page-template-contacts-php #dolgunet-footer-cta,
body.page-template-page-contacts-php #dolgunet-footer-cta{
  display: none;
}

body:has(.dolgunet-policy-content) #dolgunet-footer-cta{
  display: none;
}

body.page-template-privacy-policy-php #dolgunet-footer-cta{
  display: none;
}

