:root {
    --accent-orange: #FF8C42;
    --light-background: #eddcd1;
    --light-surface: #fff4e2;
    --dark-base: #121212;
    --medium-base: #1F1F1F;
    --white: #FFFFFF;
    --black: #000000;
    --light-gray: #CCCCCC;
}

@font-face {
    font-family: "MyUI";
    src: url("fonts/NotoSans.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: "MyUI", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--light-background);
    color: var(--black);
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

a:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header / Topbar ===== */
.site-header {
    background: transparent;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.topbar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.header-nav {
    display: flex;
    gap: 20px;
    margin-left: auto;
}

.header-nav a {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s;
    border: none;
    background: none;
}

.header-nav a:focus { outline: none; }
.header-nav a:hover { color: var(--accent-orange); }
.header-nav a.active {
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
}

/* ===== Main / hero ===== */
.hero {
    margin-top: 0;
    background: var(--light-surface);
    border-radius: 0;
    padding: 48px 0;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .07);
    position: relative;
    width: 100%;
}

.hero-body {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.hero-body.services-mode { display: block; }

.hero-left { flex: 1 1 60%; }
.hero-right {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

h1 {
    font-size: 48px;
    line-height: 1.15;
    margin: 8px 0 0px;
    color: #2E2E2E;
}

p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(0, 0, 0, .75);
    max-width: 640px;
    margin-bottom: 64px;
}

.store-row {
    display: flex;
    gap: 16px;
    margin-top: 50px;
}

.store-badge img {
    height: 52px;
    width: auto;
    display: block;
}

.feature-cards {
    display: flex;
    gap: 32px;
    margin-top: 100px;
}

.card {
    width: 250px;
    height: 100px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 0 16px rgba(255, 140, 66, 0.6);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
}

.icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 80%;
    height: auto;
    object-fit: contain;
}

/* Phone / slider */
.phone {
    width: 280px;
    height: 575px;
    border-radius: 36px;
    background: linear-gradient(#FFF, #FFF8F0);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(0, 0, 0, .06);
    padding: 16px;   /* <-- вот это делает белую рамку */
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}


.slider {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.phone-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-wrapper::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(255, 140, 66, 0.6);
    filter: blur(15px);
    border-radius: 50px;
    z-index: 0;
}

/* Footer */
.footer {
    background: #e8d8ca;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font-size: 18px; margin-bottom: 12px; color: #2E2E2E; }
.footer-col a { font-size: 14px; color: rgba(0, 0, 0, .75); }
.footer-col a:hover { color: var(--accent-orange); }
.footer-bottom { text-align: center; margin-top: 30px; font-size: 14px; color: rgba(0, 0, 0, .6); }

/* Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}
.lang-btn img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    padding: 6px 0;
    min-width: 160px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 100;
}

.dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
}

.dropdown-menu img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.lang-dropdown.open .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* SERVICES PAGE */
.services-wrap { display: flex; gap: 24px; }

/* ===== Фильтр ===== */
.filter-card {
    background: #FCEFE3;             /* мягкий бежевый фон */
    border-radius: 12px;             /* скругления */
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 240px;                    /* фиксированная ширина */
}

.filter-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #2E2E2E;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #2E2E2E;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: none;   /* убираем скролл */
}

.filter-options label {
    font-size: 12px;   /* размер текста */
    font-weight: 400;  /* обычный (не жирный) */
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;          /* отступ между чекбоксом и текстом */
}

.filter-options input[type="checkbox"] {
    width: 15px;       /* ширина чекбокса */
    height: 15px;      /* высота чекбокса */
    accent-color: var(--accent-orange);
    cursor: pointer;
}

.filter-card select {
    appearance: none;            /* убираем стандартный вид */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff url("images/icons/arrow-down.svg") no-repeat right 12px center;
    background-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.filter-card select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255,140,66,0.3);
}

.apply-btn {
    margin-top: 8px;
    padding: 10px;
    background: var(--accent-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.apply-btn:hover {
    background: #e27735;
}

/* Общий контейнер для фильтра и контента */
.services-layout {
    display: flex;
    gap: 32px; /* расстояние между фильтром и заголовком */
    align-items: flex-start; /* выравнивание по верхнему краю */
}

/* Левая колонка с фильтром */
.filter-card {
    background: #FFF8F0; /* светлее */
}


/* Правая часть (контент и заголовок "Услуги") */
.services-main {
    flex: 1; /* занимает оставшееся место */
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    padding: 16px;
    text-align: start;
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.service-card h3 {
    font-size: 18px;
    margin: 8px 0 4px; /* маленький аккуратный отступ */
    font-weight: 600;
}


.service-card p {
    font-size: 14px;
    color: #666;
    margin: 0; /* убираем глобальный огромный отступ */
}

.cards-grid.one-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.view-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.view-switch button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.view-switch button.active {
    background: var(--accent-orange);
    color: #fff;
    border-color: var(--accent-orange);
}

.clinic-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 16px;
    display: flex;              /* ← фотка и текст в ряд */
    align-items: center;
    gap: 16px;
    text-align: left;           /* ← только клиники выравнены слева */
}

.clinic-card img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.clinic-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.clinic-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.clinic-info p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

/* сетка для клиник */
.cards-grid.clinics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.cards-grid.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


.view-switch {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0 20px;
}

.view-switch button {
    padding: 8px 16px;
    border: none;
    background: #fdf6ef;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.view-switch button.active {
    background: var(--accent-orange);
    color: #fff;
}

.map-container {
    width: 1000px;
    height: 500px;
    grid-column: 1 / -1;  /* растягиваем на всю ширину сетки */
}

.map-container #map {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* ==== Service modal ==== */
.ps-modal-backdrop{
    position:fixed; inset:0; background:rgba(0,0,0,.4);
    display:flex; align-items:center; justify-content:center;
    z-index:1000; animation: psFade .15s ease;
}
@keyframes psFade{from{opacity:0}to{opacity:1}}

.ps-modal{
    width:min(560px, 92vw);
    background:#fff; border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.18);
    overflow:hidden;
}
.ps-modal header{
    display:flex; gap:16px; align-items:center;
    padding:16px 20px; background:#FFF8F0;
}
.ps-modal .ps-avatar{
    width:84px; height:84px; border-radius:50%; object-fit:cover; flex:0 0 auto;
}
.ps-modal h3{ margin:0 0 6px; font-size:22px; }
.ps-badge{
    display:inline-flex; padding:4px 10px; border-radius:999px;
    background:var(--accent-orange); color:#fff; font-size:12px; font-weight:600;
}
.ps-modal .ps-body{ padding:14px 20px 18px; display:flex; flex-direction:column; gap:12px; }
.ps-row{ display:grid; grid-template-columns:160px 1fr; gap:10px; align-items:start; }
.ps-row > span{ color:#666; font-size:14px; padding-top:3px; }
.ps-row > div{ color:#222; font-size:16px; }
.ps-close{
    position:absolute; top:10px; right:12px; width:34px; height:34px;
    border:none; border-radius:50%; background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.12);
    cursor:pointer; font-size:18px; line-height:34px;
}
@media (max-width:480px){ .ps-row{ grid-template-columns:1fr; } }

