/* ================== FONTS ================== */ 
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/roboto-v49-latin-300.woff2') format('woff2');
} 
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/roboto-v49-latin-500.woff2') format('woff2');
} 
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/roboto-v49-latin-700.woff2') format('woff2');
}     

/* ================== BASE ================== */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 
body {
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
} 
.container {
    width: 90%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 1px;
} 

/* ================== HEADER & BURGER ================== */ 
header, .header {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
} 
.header__inner, .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
} 
.logo {
    display: flex;
    align-items: center;
    height: 40px; /* можно менять под шапку */
} 
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
} 
.logo img {
    height: 100%;
    width: auto;
    display: block;
} 
.nav, .nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
} 
.nav a, .nav-links a {
    text-decoration: none;
    font-size: 16px;
    color: #1a1a1a;
    transition: 0.2s;
} 
.nav a:hover, .nav-links a:hover {
    color: #0077cc;
} 
.nav .btn, .btn {
    display: inline-block;
    padding: 12px 28px;
    background: #ffffff;
    color: #000000 !important;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid #44d3ff;
} 
.btn:hover, .nav .btn:hover {
    background: #f8f8f8;
    text-decoration: underline;
} 
/* burger */ 
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
} 
.burger span {
    width: 26px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 4px;
    transition: 0.3s;
} 
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
} 
.burger.active span:nth-child(2) {
    opacity: 0;
} 
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}    

/* =================== Телефонная кнопка для мобилок =================== */ 
.phone-link {
    display: none;
    /* скрываем на больших экранах */
} 
@media (max-width: 1140px) {
    .phone-link {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-left: auto;
        margin-right: 20px; text-decoration: none;
            color: #000;
    } 

    .phone-link .phone-icon {
        width: 15px;
        height: 15px;
        object-fit: contain;
    }
}      

.phone-text {
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}      

/* mobile menu */ 
@media(max-width: 1150px) {
     .nav-links,
    .nav {
        position: absolute;
        top: 80px;
        right: -100%;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        border-top: 1px solid #e5e7eb;
        display: none;
        transition: 0.35s;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    } 

    .nav-links.active,
    .nav.show {
        display: flex;
        right: 0;
    } 

    .burger {
        display: flex;
    }
} 

.hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    background: url("images/ivanko.jpg") center / cover no-repeat;
    overflow: hidden; padding-top: 60px; padding-bottom: 50px;
}

/* Градієнтний оверлей */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 40, 70, 0.85) 0%,
        rgba(0, 40, 70, 0.6) 45%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

/* Левая часть */
.hero__left h1 {
    font-size: clamp(22px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #fff;
}

.hero__left p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-bottom: 32px;
}

.hero__kicker {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0; /* убираем плавающие отступы */
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  white-space: nowrap; /* чтобы не ломался в 2 строки */
  background: linear-gradient(90deg, #ffffff 0%, #dbe7ee 50%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}



.certs {
    margin-top: 28px;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    border-left: 3px solid #3fa9f5;
    padding-left: 16px;
}

/* Кнопка */
.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3fa9f5, #1c6ed5);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(63,169,245,.35);
    transition: all .3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(63,169,245,.5);
}

/* Карточка врача (glassmorphism) */
.doc_card {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

.doc_card .label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #1c6ed5;
    margin-bottom: 10px;
}

.doc_card h4 {
    font-size: 22px;
    margin-bottom: 8px;
}

.doc_card p {
    color: #555;
    margin-bottom: 16px;
}

.doc_card .more {
    display: inline-block;
    margin-right: 16px;
    font-weight: 600;
    color: #1c6ed5;
    text-decoration: none;
}

.doc_card .more:hover {
    text-decoration: underline;
}

/* Адаптив */
@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
    }

    .doc_card {
        max-width: 420px;
    }
}


/* ================== SERVICES ================== */ 
.services {
    padding: 50px 0;
} 
.section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 300;
    margin-bottom: 20px;
    margin-top: 20px;
    color: #003366;
} 
.section-p {
    text-align: center;
    margin: 0 auto 30px;
    color: #003366;
    max-width: 800px;
    font-size: 17px;
} 

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
} 
.service-card {
    background: #fff;
    padding: 25px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    transition: 0.2s;
} 
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
} 
.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #005fa3;
} 
.service-card p {
    margin-bottom: 15px;
    color: #555;
} 
.service-card li {
    list-style: none;
    margin-bottom: 6px;
    padding-left: 0;
} 
.service-card a {         
    color: #000;
} 
.service-card a:hover {
    text-decoration: underline;
} 
.service-more {
    text-decoration: none;
    color: #0077cc;
    font-weight: 600;
} 

/* ================== DOCTORS ================== */ 
.doctors {
    padding: 50px 0;
} 
.doctors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
 } 
.doctor-card {
    background: #ffffff;
    width: 390px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
} 
.doctor-photo {
    width: 100%;
    height: 450px;
    margin-bottom: 15px;
    object-fit: cover;
    object-position: center;
} 
.doctor-desc  {
    margin-top: 10px;
    padding: 15px;
} 

/* ================== CONSULT ================== */ 
.consult {
    padding: 100px 0;
    background: #ffffff;
} 
.consult-box {
    max-width: 600px;
    margin: 0 auto;
} 
.consult-form {
    display: grid;
    gap: 20px;
} 
.consult-form input, .consult-form select {
    padding: 14px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    font-size: 16px;
} 

/* ================== FOOTER ================== */ 
footer {
    background: #003366;
    color: #fff;
    padding: 30px 0;
    text-align: center;
} 

/* ================== PREMIUM CONSULT FORM ================== */ 
.consult-premium {
    padding: 40px 0;
   
} 
.consult-card {
    max-width: 1260px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px 45px;
    box-shadow: 0 12px 35px rgba(0, 30, 70, 0.12);
    border: 1px solid #e2e7f0;
} 
.consult-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #002d5b;
} 
.consult-header p {
    margin-top: 6px;
    color: #6c7b8b;
    font-size: 15px;
} 

/* Honeypot */ 
.hp-wrap {
    position: absolute;
    left: -9999px;
} 

/* Layout */ 
.row {
    display: flex;
    gap: 25px;
    margin-bottom: 22px;
} 
.field {
    display: flex;
    flex-direction: column;
    flex: 1;
} 
.field.full {
    width: 100%;
    margin-bottom: 22px;
} 
.label {
    font-size: 14px;
    font-weight: 600;
    color: #002d5b;
    margin-bottom: 6px;
} 
.req {
    color: #c11;
} 

/* Inputs */ 
input, select, textarea {
    padding: 14px 16px;
    border: 1px solid #c7d2df;
    border-radius: 10px;
    background: #fdfdfd;
    font-size: 16px;
    transition: 0.25s;
} 
input:focus, textarea:focus, select:focus {
    border-color: #003a7a;
    box-shadow: 0 0 0 3px rgba(0, 82, 160, 0.15);
    outline: none;
} 

/* File */ 
.file-field .file-row {
    display: flex;
    align-items: center;
    gap: 10px;
} 
.file-field input[type="file"] {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
} 

/* Button */ 
.btn.primary {
    background: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: 0.25s;
    display: block;
    margin: 0 auto;
    text-align: center;
     border: 2px solid #44d3ff;
} 
.btn.primary:hover {
    background: #fafafa;
    box-shadow: 0 6px 20px rgba(0, 40, 90, 0.25);
} 
.form-actions {
    text-align: right;
    margin-top: 10px;
} 

/* Mobile */ 
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 18px;
    }
    .consult-card {
        padding: 28px 22px;
    }
    .consult-header h2 {
        font-size: 26px;
    }
}   

/* Futer */ 
.footer-light {
    background: #f7f9fb;
    color: #1a1a1a;
    padding: 60px 20px 30px;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    border-top: 1px solid #e5e7eb;
} 
.footer-light a {
    color: #1a1a1a;
    text-decoration: none;
    transition: 0.3s;
} 
.footer-light a:hover {
    color: #0077cc;
} 
.footer-inner {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
} 
.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 60px;
} 
.footer-about {
    flex: 1 1 100px;
} 
.footer-logo {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0077cc;
} 
.footer-nav, .footer-contact, .footer-social {
    flex: 1 1 100px;
    display: flex;
    flex-direction: column;
} 
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
} 
.footer-nav ul li {
    margin-bottom: 10px;
} 
.footer-nav h4, .footer-contact h4, .footer-social h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #0077cc;
} 
.footer-bottom {
    text-align: center;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
} 

/* Mobile */ 
@media(max-width: 850px) {
    .footer-top {
        flex-direction: column;
        gap: 25px;
    }
} 

/* ================== HERO BENEFITS ================== */ 
.hero-benefits {
    margin-top: 35px;
    padding-bottom: 20px;
} 
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
} 
.benefit-item {
    background: #ffffff;
    padding: 22px;
     text-align: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
    transition: 0.25s;
} 
.benefit-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
} 
.benefit-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 8px;
} 
.benefit-item p {
    color: #444;
    font-size: 17px;
}  

/* ================== HERO BENEFITS AND ================== */ 

/* ================== ICO  ================== */ 
.benefit-icon {
    width: 32px;
    height: 32px;
    display: block;
    margin: 0 auto 10px;
    /* центрируем и отступ снизу */
} 

/* ================== ICO AND ================== */ 

/* Скрываем контент по умолчанию на мобильных */ 
@media(max-width: 768px) {
    .footer-accordion .accordion-content {
        display: none;
        padding: 10px 0;
    } 

    .accordion-header {
        cursor: pointer;
        padding: 10px 0;
        border-top: 1px solid #ccc;
        font-weight: 600;
    } 

    .accordion-header::after {
        content: '+';
        float: right;
    } 

    .accordion-item.active .accordion-header::after {
        content: '-';
    } 

    .accordion-item.active .accordion-content {
        display: block;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
} 

/* На больших экранах показываем блоки как обычно */ 
@media(min-width: 769px) {
    .footer-accordion {
        display: flex;
        gap: 40px;
    } 

    .accordion-header::after {
        content: none;
    } 

    .accordion-content {
        display: block !important;
    }

    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: left;
    }
} 

/* Скрываем контент по умолчанию на мобильных енд */     
@media(max-width: 563px) {
    .logo img {
        height: auto;
        width: 70%;
        display: block;
    }               
}      

/* ================== UNIQUE & OVERRIDES (add to end) ================== */

/* — цветовая палитра — */
:root {
    --primary: #0b5ed7;
    --primary-soft: #eaf2ff;
    --accent: #38bdf8;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-light: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --smooth-ease: cubic-bezier(.2,.9,.3,1);
}

/* типографика — мелкие правки */
body {
    color: var(--text-main);
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    letter-spacing: -0.3px;
}

p {
    color: var(--text-muted);
}

/* кнопки — более премиальные */
.btn,
.btn.primary,
.nav .btn {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--accent);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: var(--glass-shadow);
    transition: transform .22s var(--smooth-ease), box-shadow .22s var(--smooth-ease);
}

.btn:hover,
.btn.primary:hover,
.nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    text-decoration: none;
}

/* тонкие улучшения ссылок */
a {
    transition: color .18s var(--smooth-ease), opacity .18s var(--smooth-ease);
}

/* карточки — общие */
.service-card,
.doctor-card,
.benefit-item,
.consult-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    transition: transform .25s var(--smooth-ease), box-shadow .25s var(--smooth-ease);
    overflow: hidden;
}

.service-card:hover,
.benefit-item:hover,
.doctor-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.08);
}

/* врачи — фото мягче */
.doctor-photo {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    height: 420px; /* чуть уменьшили для эстетики */
    object-fit: cover;
}

/* hero — глубина */
.hero__right img {
    border-radius: 22px;
    box-shadow: 0 20px 45px rgba(0, 40, 90, 0.18);
}



/* формы — premium feel */
.consult-card {
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.06);
    border: 1px solid var(--border-light);
}

input, textarea, select {
    background: #ffffff;
    border-radius: var(--radius-sm);
    transition: box-shadow .18s var(--smooth-ease), border-color .18s var(--smooth-ease);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 8px 28px rgba(11, 94, 215, 0.08);
}

/* кнопка primary — контрастная */
.btn.primary {

    color: #ffffff;
    border: none;
    box-shadow: 0 12px 30px rgba(11, 94, 215, 0.14);
    padding: 12px 28px;
    border-radius: 12px;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(11, 94, 215, 0.18);
}

/* footer — мягкий градиент */
.footer-light {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--text-main);
}

.footer-nav h4, .footer-contact h4, .footer-social h4 {
    color: var(--primary);
}

/* мелкие улучшения мобильного меню (сохраняя поведение) */
@media (max-width: 1150px) {
    .nav-links, .nav {
        right: -110%;
        transition: right .35s var(--smooth-ease), opacity .25s var(--smooth-ease);
    }
    .nav-links.active, .nav.show {
        right: 0;
    }
}

/* Accessibility: увеличенный фокус */
a:focus, button:focus, input:focus, select:focus {
    outline: 3px solid rgba(11,94,215,0.12);
    outline-offset: 2px;
}

/* небольшая утончённая тень для общих секций */
.section, .services, .doctors, .consult {
    transition: transform .2s var(--smooth-ease);
}

/* optional: уменьшить яркость стандартной тени, если нужно */
* {
    -webkit-font-smoothing: antialiased;
}

/* Конец переопределений */

.certificate-block {
  padding: 60px 0;
  text-align: center;
}

.certificate-block .section-title {
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 40px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}

.certificate-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  width: 100%;
  max-width: 250px;
}

.certificate-card img {
  width: 100%;
  height: auto;
  display: block;
}

.certificate-card span {
  display: block;
  padding: 12px 0;
  font-weight: 600;
  color: #333;
}

.certificate-card:hover {
  transform: translateY(-5px);
}


/* ================== FAQ ================== */
.faq {
    padding: 60px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 25px;
    color: #003366;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 22px;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    display: none;
    padding-top: 12px;
}

.faq-item.active .faq-answer {
    display: block;
}

 .doctor-img {
  width: 100%;
  height: auto; /* пусть контейнер подстраивается */
  overflow: hidden;
}

.doctor-img img {
  width: 100%;      /* подстраивается под ширину карточки */
  height: auto;     /* сохраняет пропорции */
  max-height: 420px; /* ограничение по высоте на десктопе */
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-img img {
  transform: scale(1.05);
}

.doctor-info {
  padding: 25px 20px; /* увеличиваем паддинг сверху/снизу или слева/справа */
  text-align: left;
}



/* Адаптив */
@media (max-width: 768px) {
  .doctor-img img {
    max-height: 360px;
  }
}

@media (max-width: 480px) {
  .doctor-img img {
    max-height: 300px;
  }
}


 .reviews {
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
}



.reviews-container {
  display: grid;   max-width: 1200px; /* максимальна ширина */  margin: 0 auto; 
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.review-initials {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0b5ed7, #38bdf8);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.review-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.stars {
  color: #fbbf24;
  font-size: 14px;
}

.review-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

.all-reviews-link {
  text-align: center;
  margin-top: 40px;
}

.all-reviews-link a {
  text-decoration: none;
  font-weight: 600;
  color: #0b5ed7;
  transition: color 0.25s ease;
}

.all-reviews-link a:hover {
  color: #38bdf8;
}
