:root {
    --teal: #008896;
    --teal-dark: #006d78;
    --teal-light: #d9ebed;
    --text: #000000;
    --gray-bg: #fbfbfb;
    --border: #c8d8d9;
    --purple: #8b6cb8;
    --purple-bg: #c4b5e0;
    --pink: #e07a8c;
    --pink-bg: #f4c9d2;
    --aqua: #6db8c0;
    --aqua-bg: #b0d5d9;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
    color: var(--text);
    background: #fff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
img { max-width:100%; height:auto; display:block; }

h1,h2,h3,h4,h5,h6 {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    color: var(--teal);
    line-height: 1.2;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER (той самий, що на about) ===== */
.site-header {
    background: var(--gray-bg);
    padding: 18px 0;
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo img { height: 38px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav > ul { display: flex; align-items: center; gap: 38px; list-style: none; }
.main-nav > ul > li > a {
    color: #000;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 0;
    display: inline-flex; align-items: center; gap: 6px;
    position: relative;
}
.main-nav > ul > li > a.active,
.main-nav > ul > li:hover > a { color: var(--teal); }

.has-sub > a::after {
    content:"";
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 4px;
    margin-top: -3px;
}

.submenu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 12px 0;
    list-style: none;
    opacity: 0; visibility: hidden;
    transition: all .2s;
    border-radius: 4px;
}
.has-sub { position: relative; }
.has-sub:hover > .submenu { opacity: 1; visibility: visible; }
.submenu li { position: relative; }
.submenu li a {
    display: block;
    padding: 10px 22px;
    color: #000;
    font-weight: 500;
    font-size: 14px;
}
.submenu li a:hover { color: var(--teal); background: #f8f8f8; }
.submenu .has-sub > a::after {
    position: absolute; right: 18px; top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}
.submenu .submenu { top: 0; left: 100%; transform: none; }

.header-right { display: flex; align-items: center; gap: 24px; }
.lang-toggle {
    display: flex; align-items: center; gap: 6px;
    color: #000;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    border-right: 1px solid #d0d0d0;
    padding-right: 24px;
}
.lang-toggle::after {
    content:"";
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
}
.lang-toggle .lang-menu {
    position: absolute;
    top: 100%; right: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    list-style: none;
    padding: 10px 0;
    min-width: 220px;
    display: none;
    z-index: 200;
    border-radius: 4px;
}
.lang-toggle:hover .lang-menu { display: block; }
.lang-menu li a {
    display: block; padding: 8px 22px;
    color: #000; font-weight: 400; font-size: 14px;
}
.lang-menu li a:hover { color: var(--teal); background:#f8f8f8; }

.btn-primary {
    display: inline-block;
    background: var(--teal);
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s;
}
.btn-primary:hover { background: var(--teal-dark); color: #fff !important; }

.mobile-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.mobile-toggle span { display:block; width: 26px; height: 2px; background: #000; margin: 6px 0; }

/* ===== HERO ===== */
.hero {
    position: relative;
    background: var(--gray-bg);
    min-height: 670px;
    display: flex; align-items: center; justify-content: center;
    background-image: url('https://nailner.com/app/uploads/sites/2/2024/05/background-nailguide.jpg');
    background-size: cover;
    background-position: center;
}
.hero-card {
    background: #fff;
    padding: 36px 60px;
    text-align: center;
}
.hero-card h1 {
    font-size: 44px;
    font-weight: 700;
    color: var(--teal);
    letter-spacing: -.5px;
    white-space: nowrap;
}

/* ===== INTRO TEXT ===== */
.intro {
    padding: 100px 0 80px;
    background: #fff;
}
.intro-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.intro p.lead {
    color: var(--teal);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
}

/* ===== STATS - три бульбашки ===== */
.stats {
    padding: 0 0 100px;
    background: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.stat-bubble {
    position: relative;
    aspect-ratio: 0.95;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 30px;
    text-align: center;
    /* Triangle-rounded shape via custom path */
    clip-path: path('M 175 10 C 230 10 320 60 320 175 C 320 290 230 340 175 340 C 120 340 30 290 30 175 C 30 60 120 10 175 10 Z');
    border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
}
.stat-bubble.purple { background: var(--purple-bg); color: var(--purple); }
.stat-bubble.aqua   { background: var(--aqua-bg);   color: var(--teal); }
.stat-bubble.pink   { background: var(--pink-bg);   color: var(--pink); }

.stat-bubble .pct {
    font-size: 78px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -2px;
}
.stat-bubble .lbl {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 200px;
}

/* ===== SYMPTOMS — teal-секція з 6 кружечками ===== */
.symptoms {
    background: var(--teal);
    color: #fff;
    padding: 90px 0 110px;
}
.symptoms p.lead {
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.symptom-item { text-align: center; }
.symptom-item .nail-img {
    width: 210px;
    height: 210px;
    margin: 0 auto 22px;
    border-radius: 50%;
    overflow: hidden;
    background: #b0d5d9;
    position: relative;
}
.symptom-item .nail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.symptom-item h3 {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
}
.symptoms p.outro {
    color: #fff;
    font-size: 18px;
    line-height: 1.6;
    max-width: 1000px;
    margin: 70px auto 0;
    padding: 0 20px;
}

/* ===== EXPERT NAIL ADVICE ===== */
.expert {
    padding: 100px 0 90px;
    background: #fff;
}
.expert-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}
.expert h2 {
    font-size: 56px;
    font-weight: 800;
    color: var(--teal);
    line-height: 1.05;
    position: relative;
    padding-bottom: 30px;
}
.expert h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: var(--teal);
    margin-top: 20px;
}
.expert-text p {
    color: var(--teal);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.expert-video {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.video-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #000;
    overflow: hidden;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ===== PREVENTING — split-secция ===== */
.preventing {
    position: relative;
    background: var(--teal);
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}
.preventing-img {
    background-image: url('https://nailner.com/app/uploads/sites/2/2024/05/preventing.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}
.preventing-img .title-overlay {
    position: absolute;
    top: 60px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}
.preventing-img .title-overlay .pre-line {
    background: #fff;
    color: var(--teal);
    font-size: 32px;
    font-weight: 700;
    display: inline-block;
    padding: 6px 28px;
    margin-bottom: 8px;
}
.preventing-img .title-overlay .pre-line.line2 {
    font-size: 38px;
}
.preventing-content {
    padding: 60px 60px 60px 50px;
    display: flex; flex-direction: column;
    justify-content: center;
}
.preventing-content h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}
.preventing-content h3:not(:first-child) { margin-top: 28px; }
.preventing-content ul { list-style: none; padding: 0; }
.preventing-content ul li {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 4px;
    padding-left: 14px;
    position: relative;
}
.preventing-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
}

/* ===== FAQ ===== */
.faq-section {
    background: var(--teal-light);
    padding: 70px 0;
}
.faq-list {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.faq-item {
    border-bottom: 1px solid #b8d0d3;
}
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 28px 50px 28px 4px;
    font-weight: 700;
    font-size: 19px;
    color: var(--teal);
    position: relative;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 4px; top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    font-weight: 300;
    color: #000;
    line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-body {
    padding: 0 4px 28px 4px;
    color: #000;
    font-size: 16px;
    line-height: 1.6;
    max-width: 900px;
}
.faq-body p { margin-bottom: 12px; }
.faq-body ul {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}
.faq-body ul li {
    padding: 4px 0 4px 22px;
    position: relative;
    color: var(--teal);
}
.faq-body ul li::before {
    content: "•";
    position: absolute;
    left: 6px;
    color: var(--teal);
}

/* ===== PHARMACY ===== */
.pharmacy {
    background: #fff;
    padding: 70px 0 90px;
    text-align: center;
}
.pharmacy h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 50px;
}
.pharmacy-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}
.pharmacy-logos img {
    height: 50px;
    width: auto;
    opacity: .9;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--teal);
    color: #fff;
    padding: 70px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 60px;
    margin-bottom: 50px;
    align-items: start;
}
.footer-logo img { height: 36px; width: auto; }
.site-footer h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a { color: #fff; font-size: 15px; opacity: .95; }
.site-footer ul li a:hover { opacity: 1; text-decoration: underline; }

.footer-cta { text-align: right; }
.footer-cta .btn-outline-white {
    display: inline-block;
    background: transparent;
    color: #fff !important;
    border: 1.5px solid #fff;
    padding: 11px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: all .2s;
}
.footer-cta .btn-outline-white:hover { background: #fff; color: var(--teal) !important; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.25);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}
.footer-bottom ul {
    display: flex;
    list-style: none; padding: 0;
    flex-wrap: wrap;
}
.footer-bottom ul li {
    padding: 0 16px;
    border-right: 1px solid rgba(255,255,255,.4);
}
.footer-bottom ul li:first-child { padding-left: 0; }
.footer-bottom ul li:last-child { border-right: 0; }
.footer-bottom ul li a { color: #fff; }
.footer-bottom .copyright { color: #fff; opacity: .9; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .main-nav, .header-right .lang-toggle { display: none; }
    .mobile-toggle { display: block; }
    .stats-grid { grid-template-columns: 1fr; max-width: 360px; }
    .symptoms-grid { grid-template-columns: repeat(2, 1fr); }
    .expert-grid { grid-template-columns: 1fr; gap: 30px; }
    .expert h2 { font-size: 40px; }
    .preventing { grid-template-columns: 1fr; }
    .preventing-img { min-height: 320px; }
    .preventing-content { padding: 40px 30px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-cta { text-align: left; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .hero { min-height: 420px; }
    .hero-card { padding: 24px 30px; }
    .hero-card h1 { font-size: 26px; }
    .intro { padding: 60px 0 50px; }
    .intro p.lead, .symptoms p.lead { font-size: 18px; }
    .symptoms-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
    .pharmacy-logos { gap: 40px; }
    .pharmacy-logos img { height: 36px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}