/* Деос, демо. Мерките са от измерването на образеца (dokumenti/referencia). */

@font-face { font-family: "Geologica"; font-weight: 700; font-display: swap; src: url(fonts/geologica-700-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 700; font-display: swap; src: url(fonts/geologica-700-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url(fonts/golos-cyr.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 700; font-display: swap; src: url(fonts/golos-lat.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --navy: #092d62;
  --navy-btn: #002f73;
  --blue: #00377a;
  --steel: #4c6a94;
  --cyan: #25abe2;
  --cyan-text: #219cce;
  --ice: #f0fbff;
  --line: #d4e7ef;
  --head: "Geologica", "Golos Text", Arial, sans-serif;
  --body: "Golos Text", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Печатни форми на кирилицата и при lang="bg". С !important, защото краткото свойство font връща настройката в начално положение. */
*, *::before, *::after { font-feature-settings: "locl" 0 !important; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.4; color: var(--navy); background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[id] { scroll-margin-top: 100px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1440px; margin: 0 auto; padding: 0 20px; }

.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Бутони: без заобляне, както в образеца */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 13px 16px; border: 0; font: 700 14px/14px var(--body); letter-spacing: -.4px; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn .ico { width: 18px; height: 18px; }
.btn--cyan { background: var(--cyan); color: #fff; }
.btn--cyan:hover { background: #1b97cb; }
.btn--navy { background: var(--navy-btn); color: #fff; box-shadow: 0 4px 10px rgba(0, 47, 115, .25); }
.btn--navy:hover { background: #01408f; }
.btn--white { background: #fff; color: var(--cyan-text); border: 1px solid var(--line); box-shadow: 0 4px 10px rgba(9, 45, 98, .06); }
.btn--white:hover { border-color: var(--cyan); }
.btn--light { background: #fff; color: var(--cyan-text); min-height: 38px; padding: 10px 16px; box-shadow: 0 4px 10px rgba(9, 45, 98, .08); }
.btn--light:hover { color: var(--navy-btn); }
.btn--line { background: transparent; color: #fff; border: 1px solid var(--cyan); }
.btn--line:hover { background: rgba(37, 171, 226, .18); }

/* Хедър: един ред */
.header { position: sticky; top: 0; z-index: 50; background: var(--blue); color: #fff; }
.header__in { display: flex; align-items: center; gap: 24px; height: 86px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: #fff; line-height: 1; }
.logo__name { font: 700 30px/1 var(--head); letter-spacing: -.5px; }
.logo__sub { margin-top: 5px; padding-top: 5px; border-top: 1px solid rgba(255, 255, 255, .55); font: 500 10.5px/1 var(--body); letter-spacing: .4px; color: #7fd0f2; white-space: nowrap; }
.nav { display: flex; gap: 10px; margin-left: 26px; margin-right: auto; }
.nav a { padding: 10px 12px; font: 600 16px/1.2 var(--body); color: #fff; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: #8bd6f5; }
.header__tel { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--body); color: #fff; text-decoration: none; white-space: nowrap; }
.header__tel .ico { width: 24px; height: 24px; color: var(--cyan); }
.header__cta { min-height: 40px; padding: 0 15px; }
.header__m, .menu { display: none; }

/* Заглавие и снимка */
.title { background: var(--navy); color: #fff; }
.title .wrap { display: flex; align-items: center; min-height: 144px; padding-top: 20px; padding-bottom: 20px; }
.title h1 { font: 700 45.1px/1.24 var(--head); letter-spacing: -.5px; }
.hero { display: block; }
.hero img { width: 100%; height: 510px; object-fit: cover; }

/* Стъпки: едра цифра и бяла плочка */
.steps { background: var(--ice); padding: 70px 0 30px; }
.steps h2 { font: 700 32px/40px var(--head); letter-spacing: -.6px; text-align: center; }
.steps__list { display: flex; justify-content: center; gap: 45px; margin-top: 30px; }
.steps__list li { display: flex; flex-direction: column; align-items: center; width: 144px; }
.steps__n { font: 700 64px/80px var(--head); letter-spacing: -2px; color: var(--steel); }
.steps__t { width: 168px; padding: 7px 8px; background: #fff; box-shadow: 0 2px 8px rgba(9, 45, 98, .07); font: 600 16px/22px var(--body); text-align: center; }

/* Големи заглавия и уводен текст */
.h-big { font: 700 54.1px/68px var(--head); letter-spacing: -2.2px; color: var(--navy); }
.h-big span { color: var(--cyan-text); }
.lead { max-width: 750px; margin-top: 30px; font: 500 17.6px/22px var(--body); color: var(--steel); }
.lead strong { font-weight: 600; }

/* Услуги */
.services { padding: 121px 0 80px; background: linear-gradient(180deg, #fff 62%, var(--ice) 100%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 27px; margin-top: 80px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #f9fdff 100%); box-shadow: 0 4px 24px rgba(9, 45, 98, .06); }
.card__img { position: relative; display: grid; place-items: center; height: 330px; }
.card__img::before { content: ""; position: absolute; width: 290px; height: 290px; border-radius: 50%; background: #e8f7fd; transform: translate(18px, 10px); }
.card__img img { position: relative; width: 250px; height: 250px; border-radius: 50%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 0 40px 40px; }
.card__label { font: 700 14px/20px var(--body); color: var(--steel); }
.card h3 { margin-top: 4px; min-height: 72px; font: 700 32px/36px var(--head); letter-spacing: -.6px; }
.card__rows { display: grid; gap: 12px; margin-top: 20px; padding-top: 22px; border-top: 1px solid #dfe8ee; font: 700 16px/20px var(--body); }
.card__rows li { display: flex; gap: 12px; align-items: flex-start; }
.card__rows .ico { width: 22px; height: 22px; margin-top: -1px; color: var(--cyan-text); }
.card__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 26px; }

/* Записване: синя лента със снимка */
.book { padding-top: 100px; }
.book__band { position: relative; display: grid; grid-template-columns: 731px 1fr; min-height: 343px; background: linear-gradient(180deg, #1c7fae 0%, #0b4f8d 55%, #00306f 100%); box-shadow: 0 10px 24px rgba(9, 45, 98, .18); color: #fff; }
.book__img { position: absolute; left: 0; bottom: 0; width: 711px; height: 100%; object-fit: cover; object-position: 50% 30%; -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%), linear-gradient(to right, #000 72%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 58%, transparent 100%), linear-gradient(to right, #000 72%, transparent 100%); mask-composite: intersect; }
.book__body { grid-column: 2; padding: 30px 60px 30px 0; }
.book h2 { font: 700 32px/40px var(--head); letter-spacing: -1px; }
.book__body > p { margin-top: 10px; font: 400 16px/20px var(--body); }
.form { margin-top: 26px; max-width: 610px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.form input, .form select { width: 100%; height: 44px; padding: 0 15px; border: 0; border-radius: 0; background: var(--ice); color: var(--navy); font: 400 16px/1 var(--body); appearance: none; -webkit-appearance: none; }
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23092d62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 20px; padding-right: 44px; }
.form input::placeholder { color: #5f7694; }
.form input.err { box-shadow: inset 0 0 0 2px #ffb4a8; }
.form__btn { min-height: 44px; margin-top: 20px; padding: 13px 36px; }
.form__msg { margin-top: 12px; font: 600 15px/20px var(--body); min-height: 20px; }

/* При какво помагаме */
.help { padding-top: 130px; overflow-x: clip; }
.help__top { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 60px; align-items: center; }
.help__pic { position: relative; width: 287px; height: 287px; margin: 0 auto; }
.help__pic::before { content: ""; position: absolute; right: -100px; top: 25px; width: 250px; height: 250px; border-radius: 50%; background: #e8f7fd; }
.help__pic::after { content: ""; position: absolute; left: -100px; top: 30px; width: 180px; height: 240px; background-image: radial-gradient(#9fd6ef 1.6px, transparent 1.7px); background-size: 12px 12px; }
.help__pic img { position: relative; z-index: 1; width: 287px; height: 287px; border-radius: 50%; object-fit: cover; }
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 80px; }
.mini { padding: 30px 20px 34px; border: 1px solid var(--line); background: #fff; box-shadow: 0 4px 24px rgba(9, 45, 98, .06); text-align: center; }
.mini img { width: 153px; height: 153px; margin: 0 auto; border-radius: 50%; object-fit: cover; }
.mini h3 { margin-top: 22px; font: 700 22px/30px var(--body); color: var(--cyan-text); }
.mini p { margin-top: 6px; font: 400 15px/20px var(--body); color: var(--steel); }

/* Контакти: светлосин панел */
.visit { padding-top: 120px; }
.visit__panel { display: grid; grid-template-columns: 538px 1fr; min-height: 450px; background: #c9e9f9; box-shadow: 0 10px 24px rgba(9, 45, 98, .12); }
.visit__img { width: 538px; height: 100%; min-height: 450px; object-fit: cover; -webkit-mask-image: linear-gradient(to right, #000 70%, transparent 100%); mask-image: linear-gradient(to right, #000 70%, transparent 100%); }
.visit__body { align-self: center; padding: 50px 40px 50px 104px; }
.visit__body p { max-width: 720px; margin-top: 34px; font: 700 24px/30px var(--body); letter-spacing: -.3px; }
.visit__body p span { color: var(--cyan-text); }
.visit__body .btn { margin-top: 40px; }
.visit__body .btn .ico { margin-left: 6px; }

/* Футър */
.footer { margin-top: 80px; background: var(--blue); color: #fff; }
.footer__in { display: grid; grid-template-columns: 225px repeat(3, 1fr); gap: 40px; padding-top: 40px; padding-bottom: 46px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer__brand .logo__name { font-size: 36px; }
.footer__brand .btn { width: 220px; min-height: 40px; }
.footer__tel { display: inline-flex; align-items: center; gap: 12px; margin: 14px 0 12px; font: 700 18px/1 var(--body); text-decoration: none; }
.footer__tel .ico { color: var(--cyan); }
.footer__col h2 { padding-bottom: 10px; margin-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .22); font: 700 22px/24px var(--head); letter-spacing: -.3px; }
.footer__col li { margin-bottom: 12px; font: 500 14px/18px var(--body); }
.footer__col a { text-underline-offset: 3px; }
.footer__col a:hover { color: #8bd6f5; }
.footer__bottom { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 26px; padding-top: 18px; padding-bottom: 18px; border-top: 1px solid rgba(255, 255, 255, .22); font: 600 12px/20px var(--body); }
.coltcode-credit a { display: inline-flex; align-items: center; gap: .35em; color: inherit; text-decoration: none; }
.coltcode-credit img { flex: none; display: block; }
.coltcode-credit span { text-decoration: underline; text-underline-offset: 3px; }

/* Таблет */
@media (max-width: 1240px) {
  .nav { margin-left: 10px; gap: 0; }
  .nav a { font-size: 15px; padding: 10px 9px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .book__band { grid-template-columns: 46% 1fr; }
  .book__img { width: 46%; }
  .book__body { padding-right: 30px; padding-left: 20px; }
  .minis { grid-template-columns: repeat(2, 1fr); }
  .visit__panel { grid-template-columns: 40% 1fr; }
  .visit__img { width: 100%; }
  .visit__body { padding-left: 50px; }
  .help__top { grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; }
  .help__pic::before { right: -30px; }
  .help__pic::after { left: -40px; }
}

@media (max-width: 1000px) {
  .nav, .header__tel, .header__cta { display: none; }
  .header__in { height: 58px; gap: 0; justify-content: space-between; }
  .logo__name { font-size: 22px; }
  .logo__sub { margin-top: 3px; padding-top: 3px; font-size: 8.5px; letter-spacing: .2px; }
  .header__m { display: flex; align-items: center; }
  .sq { display: grid; place-items: center; width: 50px; height: 40px; }
  .sq--cyan { background: var(--cyan); color: #fff; }
  .sq--white { background: #fff; color: var(--cyan-text); border: 1px solid var(--line); }
  .burger { display: grid; place-items: center; width: 54px; height: 40px; margin-right: -15px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
  .burger .ico { width: 24px; height: 24px; stroke-width: 2; }
  .burger .ico--close, .burger[aria-expanded="true"] .ico--open { display: none; }
  .burger[aria-expanded="true"] .ico--close { display: block; }
  .menu:not([hidden]) { display: block; position: absolute; left: 0; right: 0; top: 58px; height: calc(100dvh - 58px); padding: 16px 15px 30px; background: #fff; overflow-y: auto; }
  .menu a { display: flex; align-items: center; min-height: 51px; border-bottom: 1px solid var(--line); font: 700 13px/1 var(--body); letter-spacing: -.1px; text-transform: uppercase; color: var(--navy-btn); text-decoration: none; }
  .menu a.menu__tel { gap: 10px; font-size: 16px; color: var(--cyan); text-transform: none; }
  [id] { scroll-margin-top: 72px; }

  .title .wrap { min-height: 0; padding-top: 22px; padding-bottom: 22px; }
  .title h1 { font-size: 32px; line-height: 1.2; }
  .hero img { height: auto; aspect-ratio: 1440 / 510; }
  .steps__list { flex-wrap: wrap; gap: 30px 45px; max-width: 620px; margin-left: auto; margin-right: auto; }
  .h-big { font-size: 44px; line-height: 54px; letter-spacing: -1.6px; }
  .services { padding-top: 90px; }
  .book { padding-top: 90px; }
  .visit__body p { font-size: 20px; line-height: 27px; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}

/* Телефон: подредбата на образеца на 390 px */
@media (max-width: 600px) {
  .title .wrap { padding-top: 18px; padding-bottom: 18px; }
  .title h1 { font-size: 25px; line-height: 30px; letter-spacing: -.4px; }
  .hero img { aspect-ratio: 390 / 219; }

  .steps { padding: 50px 0 40px; }
  .steps h2 { letter-spacing: -.6px; }
  .steps__list { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 45px; margin-top: 30px; }
  .steps__list li { width: 200px; }
  .steps__t { width: 224px; }

  .services { padding: 90px 0 60px; }
  .services .wide, .help .wide { padding: 0 38px; }
  .h-big { font-size: 36px; line-height: 45px; letter-spacing: -1.4px; }
  .cards { grid-template-columns: 1fr; gap: 20px; margin-top: 60px; }
  .card__img { height: 300px; }
  .card__img::before { width: 260px; height: 260px; transform: translate(12px, 8px); }
  .card__img img { width: 226px; height: 226px; }
  .card__body { padding: 0 20px 20px; }
  .card h3 { min-height: 0; }
  .card__btns { flex-direction: column; gap: 10px; padding-top: 22px; }
  .card__btns .btn { width: 100%; }

  .book { padding-top: 96px; }
  .book .wide { padding: 0 17px; }
  .book__band { display: block; min-height: 0; padding: 0 39px 34px; }
  .book__img { position: static; display: block; width: calc(100% + 52px); max-width: none; height: auto; aspect-ratio: 331 / 207; margin: 0 -26px; transform: translateY(-26px); -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .book__body { padding: 0; text-align: center; }
  .book h2 { font-size: 22px; line-height: 30px; letter-spacing: -.7px; }
  .book__body > p { margin-top: 4px; line-height: 22px; }
  .form { margin-top: 22px; text-align: left; }
  .form__row { grid-template-columns: 1fr; }
  .form__btn { width: 100%; margin-top: 16px; }
  .form__msg { text-align: center; }

  .help { padding-top: 90px; }
  .help__top { grid-template-columns: 1fr; gap: 50px; }
  .help .h-big { font-size: 28px; line-height: 34px; letter-spacing: -1px; text-align: center; }
  .help .h-big span { display: block; }
  .help__pic::before { right: -26px; }
  .help__pic::after { left: -24px; width: 120px; }
  .minis { display: flex; gap: 26px; margin: 60px -38px 0; padding: 0 38px 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .minis::-webkit-scrollbar { display: none; }
  .mini { flex: 0 0 266px; scroll-snap-align: center; }

  .visit { padding-top: 70px; }
  .visit__panel { display: block; min-height: 0; }
  .visit__img { width: 100%; height: 210px; min-height: 0; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
  .visit__body { padding: 6px 20px 30px; }
  .visit__body p { margin-top: 22px; font-size: 16px; line-height: 19px; letter-spacing: -.2px; }
  .visit__body .btn { margin-top: 26px; }

  .footer { margin-top: 60px; }
  .footer__in { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; padding-bottom: 30px; }
  .footer__brand { align-items: center; gap: 0; padding-bottom: 6px; }
  .footer__brand .logo { align-items: center; }
  .footer__brand .logo__name { font-size: 56px; }
  .footer__brand .logo__sub { margin-top: 8px; padding-top: 8px; font-size: 17px; }
  .footer__tel { margin: 30px 0 24px; }
  .footer__brand .btn { width: 190px; min-height: 34px; padding: 8px 12px; }
  .footer__brand .btn + .btn { margin-top: 10px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
