/* =====================================================
   STYLE.CSS — Офтальмолог Васконселлос Мензори
   ===================================================== */

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text, #1a1a2e); background: var(--bg, #fff); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- Hero BG Photo ----- */
.hero { position: relative; overflow: hidden; }
.hero-bg-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.13;
    filter: blur(2px) saturate(0.7);
}
.hero-mesh,
.hero-inner,
.hero-scroll-hint { position: relative; z-index: 1; }

/* ----- Variables ----- */
:root {
    --brand: #1565c0;
    --accent: #42a5f5;
    --text: #1a1a2e;
    --text-muted: #5a6470;
    --bg: #ffffff;
    --bg-soft: #f4f7fb;
    --bg-card: #ffffff;
    --radius: 16px;
    --shadow: 0 4px 24px rgba(21,101,192,.10);
    --shadow-lg: 0 8px 40px rgba(21,101,192,.16);
}

/* ----- Container ----- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ----- Reveal animations ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal--right { transform: translateX(28px); }
.reveal--right.visible { transform: none; }

/* ----- Header ----- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(21,101,192,.08); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.header-logo { display: flex; align-items: center; gap: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-weight: 700; font-size: .95rem; color: var(--brand); }
.logo-spec { font-size: .72rem; color: var(--text-muted); }
.header-nav { display: flex; gap: 4px; margin-left: auto; }
.header-nav a { padding: 6px 12px; border-radius: 8px; font-size: .88rem; font-weight: 500; color: var(--text-muted); transition: background .2s, color .2s; }
.header-nav a:hover { background: var(--bg-soft); color: var(--brand); }
.btn-appt { display: flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--brand); color: #fff; border-radius: 10px; font-size: .88rem; font-weight: 600; transition: background .2s, transform .15s; white-space: nowrap; }
.btn-appt:hover { background: #0d47a1; transform: translateY(-1px); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ----- Hero ----- */
.hero { min-height: 92vh; display: flex; align-items: center; padding: 80px 0 60px; background: linear-gradient(135deg, #e8f0fe 0%, #ffffff 50%, #e3f2fd 100%); }
.hero-mesh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mesh-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; }
.blob-1 { width: 500px; height: 500px; background: radial-gradient(circle, #bbdefb, transparent); top: -100px; right: -100px; }
.blob-2 { width: 350px; height: 350px; background: radial-gradient(circle, #e3f2fd, transparent); bottom: 0; left: -80px; }
.blob-3 { width: 250px; height: 250px; background: radial-gradient(circle, #c5cae9, transparent); top: 40%; left: 30%; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; position: relative; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-tag { padding: 4px 14px; background: rgba(21,101,192,.1); color: var(--brand); border-radius: 20px; font-size: .8rem; font-weight: 600; }
.hero-tag--alt { background: rgba(66,165,245,.15); color: #1976d2; }
.hero-name { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 480px; margin-bottom: 24px; }
.hero-awards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.award-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: rgba(244,180,0,.1); border-radius: 10px; font-size: .85rem; width: fit-content; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary-lg { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--brand); color: #fff; border-radius: 12px; font-size: 1rem; font-weight: 700; transition: background .2s, transform .15s; }
.btn-primary-lg:hover { background: #0d47a1; transform: translateY(-2px); }
.btn-ghost-lg { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border: 2px solid var(--brand); color: var(--brand); border-radius: 12px; font-size: 1rem; font-weight: 600; transition: background .2s, color .2s, transform .15s; }
.btn-ghost-lg:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

/* ----- Hero photo ----- */
.hero-photo-wrap { flex-shrink: 0; }
.hero-photo-card { position: relative; display: inline-block; }
.hero-photo { width: 340px; max-width: 100%; height: auto; border-radius: 24px; object-fit: cover; box-shadow: var(--shadow-lg); display: block; }
.photo-badge { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; }
.photo-badge--exp { bottom: 24px; left: -28px; }
.photo-badge--rating { top: 24px; right: -24px; }
.badge-num { font-size: 1.6rem; font-weight: 800; color: var(--brand); line-height: 1; }
.badge-lbl { font-size: .72rem; color: var(--text-muted); line-height: 1.3; }
.badge-sub { font-size: .7rem; color: var(--text-muted); }

/* ----- Scroll hint ----- */
.hero-scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); }
.scroll-dot { animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce { 0%,100% { cy: 9; } 50% { cy: 18; } }

/* ----- Stats band ----- */
.stats-band { background: var(--brand); color: #fff; padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-item { text-align: center; padding: 16px; }
.stat-num { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stat-lbl { display: block; font-size: .82rem; opacity: .8; margin-top: 4px; }

/* ----- Section commons ----- */
.section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-label { display: inline-block; padding: 4px 14px; background: rgba(21,101,192,.1); color: var(--brand); border-radius: 20px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); line-height: 1.2; }

/* ----- About ----- */
.about-section { background: var(--bg-soft); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-lead { font-size: 1.1rem; font-weight: 600; margin: 16px 0 12px; color: var(--text); }
.about-body { color: var(--text-muted); margin-bottom: 24px; line-height: 1.7; }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; background: #fff; border: 1.5px solid rgba(21,101,192,.18); color: var(--brand); border-radius: 20px; font-size: .82rem; font-weight: 600; }
.doc-card { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; }
.doc-card-img { width: 100%; height: 260px; object-fit: cover; object-position: top center; display: block; }
.doc-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px; background: linear-gradient(0deg, rgba(21,101,192,.85) 0%, transparent 100%); }
.doc-card-caption { color: #fff; font-size: .9rem; font-weight: 600; margin: 0; }
.about-fact-row { display: flex; flex-direction: column; gap: 12px; }
.about-fact { display: flex; align-items: flex-start; gap: 12px; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 10px rgba(21,101,192,.07); }
.about-fact strong { display: block; font-size: .9rem; color: var(--text); }
.about-fact span { font-size: .82rem; color: var(--text-muted); }

/* ----- Education photo block ----- */
.edu-layout { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: start; }
.edu-photo-block { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.edu-photo { width: 100%; height: 300px; object-fit: cover; object-position: center; display: block; }

/* ----- Services bento ----- */
.services-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { background: var(--bg-card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); border: 1px solid rgba(21,101,192,.07); transition: box-shadow .25s, transform .25s; }
.svc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.svc-card--lg { grid-column: span 1; }
.svc-icon { width: 52px; height: 52px; background: rgba(21,101,192,.08); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.svc-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.svc-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ----- Education ----- */
.edu-section { background: var(--bg-soft); }
.edu-timeline { display: flex; flex-direction: column; gap: 0; }
.edu-item { display: flex; gap: 20px; padding-bottom: 32px; position: relative; }
.edu-item::before { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: rgba(21,101,192,.15); }
.edu-item:last-child::before { display: none; }
.edu-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); flex-shrink: 0; margin-top: 4px; box-shadow: 0 0 0 4px rgba(21,101,192,.15); }
.edu-year { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.edu-body h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.edu-body p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ----- Clinic ----- */
.clinic-section { background: #fff; }
.clinic-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.clinic-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.clinic-map iframe { display: block; }
.clinic-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
.clinic-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--text-muted); }
.clinic-tel { color: var(--brand); font-weight: 700; font-size: 1.1rem; }
.clinic-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ----- Reviews ----- */
.reviews-section { background: var(--bg-soft); }
.rating-summary { display: flex; align-items: center; gap: 14px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.rating-big { font-size: 2.8rem; font-weight: 800; color: var(--brand); line-height: 1; }
.rating-stars { display: flex; gap: 3px; }
.rating-note { font-size: .82rem; color: var(--text-muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.review-card { background: var(--bg-card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid rgba(21,101,192,.06); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.review-meta { flex: 1; }
.review-meta strong { display: block; font-size: .9rem; color: var(--text); }
.review-meta span { font-size: .78rem; color: var(--text-muted); }
.review-stars { display: flex; gap: 2px; margin-left: auto; }
.review-text { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
.reviews-cta { text-align: center; }

/* ----- Form ----- */
.form-section { background: #fff; }
.form-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-sub { color: var(--text-muted); margin: 12px 0 28px; line-height: 1.7; }
.form-contacts { display: flex; flex-direction: column; gap: 16px; }
.contact-link { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; background: var(--bg-soft); border-radius: 12px; transition: background .2s; }
.contact-link:hover { background: #e8f0fe; }
.contact-icon { width: 40px; height: 40px; background: rgba(21,101,192,.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-label { display: block; font-size: .76rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-link strong { font-size: .95rem; color: var(--text); }
.appt-form { background: var(--bg-soft); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group textarea { width: 100%; padding: 12px 16px; border: 1.5px solid rgba(21,101,192,.18); border-radius: 10px; font-size: .95rem; background: #fff; color: var(--text); outline: none; transition: border-color .2s; font-family: inherit; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--brand); }
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-submit { width: 100%; padding: 15px; background: var(--brand); color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s, transform .15s; }
.btn-submit:hover { background: #0d47a1; transform: translateY(-1px); }
.form-note { font-size: .76rem; color: var(--text-muted); text-align: center; margin-top: 12px; }
.form-error-msg { background: #fdecea; color: #c62828; border-radius: 8px; padding: 10px 14px; font-size: .88rem; margin-bottom: 14px; }
.form-success-msg { text-align: center; padding: 48px 24px; }
.form-success-msg h3 { font-size: 1.4rem; font-weight: 700; margin: 16px 0 8px; color: var(--text); }
.form-success-msg p { color: var(--text-muted); margin-bottom: 24px; }

/* ----- Footer ----- */
.site-footer { background: #0d1b3e; color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .header-logo { margin-bottom: 14px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-spec { color: rgba(255,255,255,.5); }
.footer-desc { font-size: .85rem; line-height: 1.7; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-nav-col h4,
.footer-contacts-col h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.footer-nav-col ul,
.footer-contacts-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a,
.footer-contacts-col a { font-size: .88rem; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-nav-col a:hover,
.footer-contacts-col a:hover { color: #fff; }
.footer-contacts-col li { font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom span { font-size: .78rem; color: rgba(255,255,255,.35); }

/* ----- Responsive ----- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-photo-wrap { display: none; }
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .services-bento { grid-template-columns: 1fr 1fr; }
    .edu-layout { grid-template-columns: 1fr; }
    .edu-photo-block { order: -1; }
    .clinic-inner { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr 1fr; }
    .form-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .header-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; gap: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 99; }
    .header-nav.open { display: flex; }
    .burger { display: flex; }
    .hero { padding: 60px 0 40px; min-height: auto; }
    .hero-photo-wrap { display: none; }
    .services-bento { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .edu-layout { grid-template-columns: 1fr; }
    .btn-primary-lg, .btn-ghost-lg { padding: 12px 20px; font-size: .92rem; }
}