:root {
    --white: #fff;
    --grey: #d8dfe2;
    --grey-light: #eef2f3;
    --slate: #5f7d8e;
    --slate-pale: #a9bcc7;
    --dark: #1b2227;
    --black: #000;
    --text: #1a1a1a;
    --line: rgba(0, 0, 0, .14);

    --serif: "Playfair Display", Georgia, serif;
    --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1280px;
    --gutter: clamp(20px, 5vw, 64px);
    --radius: 16px;
    --photo-shade: .2; /* black wash over every photo; 0 turns it off */
}

/* Arabic page: Arabic typefaces, Latin falls back to the English ones */
:root[dir="rtl"] {
    --serif: "Noto Naskh Arabic", "Playfair Display", Georgia, serif;
    --sans: "IBM Plex Sans Arabic", "Poppins", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 150px; }

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }

.skip { position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100; padding: 12px 20px; background: var(--black); color: var(--white); }
.skip:focus { inset-inline-start: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.center { text-align: center; }

.icon { width: 1em; height: 1em; flex: none; }

/* Type */

.label {
    font-size: 15px; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; line-height: 1.6;
}
.h2 {
    font-family: var(--serif); font-weight: 400;
    font-size: clamp(30px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -.02em;
    text-wrap: balance;
}
.h2 em, .hero__title em { font-style: italic; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; }

.textlink, .textlinks a {
    font-family: var(--sans); font-size: 15px; font-weight: 500; text-underline-offset: 5px;
}
.textlink:hover, .textlinks a:hover { color: var(--slate); }

/* Buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 12px 34px;
    border: 1px solid transparent; border-radius: 999px;
    font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: .02em; line-height: 1.2; text-decoration: none;
    cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: var(--slate); }
.btn--pale { background: var(--grey); color: var(--black); }
.btn--pale:hover { background: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--black); }
.btn--block { width: 100%; }
.btn--whatsapp { background: #25d366; color: var(--white); }
.btn--whatsapp:hover { background: #1da851; }
.btn--block .icon { font-size: 22px; margin-inline-end: 10px; }
.form__note { margin-top: 12px; font-size: 14px; text-align: center; color: #555; }

.play { display: inline-flex; align-items: center; gap: 22px; color: var(--white); text-decoration: none; font-size: 16px; }
.play--dark { color: var(--text); letter-spacing: .16em; text-transform: uppercase; font-weight: 300; }
.play__dot {
    display: grid; place-items: center; width: 52px; height: 52px; flex: none;
    border-radius: 50%; background: var(--slate-pale); color: var(--white); font-size: 20px;
    transition: background .25s, transform .25s;
}
.play--dark .play__dot { background: var(--slate); }
.play:hover .play__dot { background: var(--slate); transform: translateX(4px); }

/* 1–2. Header */

.top { position: sticky; top: 0; z-index: 50; background: var(--white); }
.top__row {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
    min-height: 90px; padding-inline: clamp(20px, 3vw, 44px);
}
.top__left, .top__right { display: flex; align-items: center; gap: 26px; }
.top__right { justify-content: flex-end; }
.top__left a, .top__phone { display: inline-flex; align-items: center; gap: 9px; color: var(--slate); text-decoration: none; font-size: 16px; }
.top__left .icon { font-size: 20px; }
.top__phone { color: var(--text); font-weight: 500; }
.top__left a:hover, .top__phone:hover { color: var(--black); }
.top .btn { min-height: 44px; padding: 8px 26px; }

.logo { display: block; text-align: center; text-decoration: none; line-height: 1; white-space: nowrap; }
.logo__name { display: block; font-size: clamp(22px, 2.5vw, 35px); font-weight: 300; letter-spacing: .04em; text-transform: uppercase; }
.logo__role { display: block; margin-top: 10px; font-size: clamp(10px, 1vw, 13px); font-weight: 500; letter-spacing: .85em; margin-inline-end: -.85em; text-transform: uppercase; }
.logo--left { text-align: start; }

.menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px clamp(20px, 3.6vw, 52px); padding: 15px var(--gutter); background: var(--grey); }
.menu a {
    padding: 2px 0; font-size: 15px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.menu a:hover, .menu a.is-current { border-color: currentColor; }

.menu-toggle {
    display: none; min-height: 44px; padding: 8px 22px;
    border: 1px solid var(--black); border-radius: 999px; background: none; cursor: pointer;
    font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}

/* 3. Hero */

.hero {
    position: relative; display: grid; place-items: end start;
    min-height: min(84vh, 780px); padding: 120px var(--gutter) 64px;
    background: var(--dark) center / cover no-repeat; color: var(--white); text-align: start;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(20deg, rgba(0, 0, 0, .6), transparent 50%); }
.hero__inner { position: relative; }
.hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4vw, 58px); line-height: 1.12; letter-spacing: -.01em; }
.hero__title span { display: block; }
.hero__title em { font-weight: 400; }
.hero .btn { margin-top: 32px; }

/* Grey sections and rounded cards (4, 12) */

.section { padding-block: clamp(64px, 8vw, 112px); }
.section--narrow { padding-block: clamp(56px, 7vw, 96px); }
.grey { background: var(--grey); padding-block: clamp(48px, 6vw, 88px); }
.grey--tight { padding-block: clamp(40px, 4vw, 56px); padding-inline: 0; }

.card {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 80px);
    background: var(--white); border-radius: var(--radius); padding: clamp(32px, 6vw, 88px);
}
.card--photo-left { grid-template-columns: .85fr 1.15fr; padding-inline-start: 0; }
.card__text > * + * { margin-top: 24px; }
.card__text .btn { margin-top: 32px; }
.card__photo { position: relative; }
.card--photo-right .card__photo { margin-inline-end: calc(clamp(32px, 6vw, 88px) * -1.6); }
.card--photo-right .card__photo::before {
    content: ""; position: absolute; inset-inline-start: -12%; bottom: -34%; width: 62%; aspect-ratio: 1;
    border-radius: 50%; background: var(--grey);
}
.card--photo-left .card__photo { margin-inline-start: -14%; }
.circle { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }

.textlinks { display: flex; flex-wrap: wrap; gap: 10px 32px; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { padding: 7px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--grey-light); font-size: 15px; }

/* Statement: a large standalone line of the core message */

.statement {
    max-width: 22em; margin-bottom: clamp(48px, 6vw, 80px); text-align: center;
    font-family: var(--serif); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.25;
}
.statement em { font-style: italic; color: var(--slate); }

/* Two-column intros (6, 8, 17) */

.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; margin-bottom: clamp(40px, 5vw, 72px); }
.intro .label { margin-top: 20px; }
.intro .btn { margin-top: 32px; }
.intro--flat { padding-inline: 0; }

/* 6. Areas */

.areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.2vw, 18px); padding-inline: clamp(10px, 1.2vw, 18px); }
.area {
    position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
    height: clamp(320px, 42vw, 600px); padding: 0 16px 44px;
    border-radius: var(--radius); background: var(--slate) center / cover no-repeat;
    color: var(--white); text-align: center; text-decoration: none;
}
.area::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .55)); transition: opacity .4s; }
.area:hover::before { opacity: .6; }
.area span {
    position: relative; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .8);
    font-size: clamp(13px, 1.25vw, 17px); letter-spacing: .2em; text-transform: uppercase; line-height: 1.4;
}

/* 7. Meet the doctor */

.about { background: var(--dark); color: var(--white); }
.about__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--white); }
.about__tabs button {
    padding: 22px 16px 18px; background: none; border: 0; border-bottom: 5px solid transparent; cursor: pointer;
    color: #777; font-size: 17px; font-weight: 500;
}
.about__tabs button[aria-selected="true"] { color: var(--black); border-color: var(--slate-pale); }
.about__body { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.about__photo { background: #2b353b center 18% / cover no-repeat; min-height: 340px; } /* portraits: keep the face, crop the torso */
.about__text { align-self: center; padding: clamp(40px, 6vw, 88px) var(--gutter); max-width: 720px; }
.about__text .label { margin: 16px 0 24px; }
.about__text p:not(.label) { font-weight: 300; }
.badges { display: flex; flex-wrap: wrap; gap: 16px 36px; margin-top: 40px; }
.badges li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.badges .icon { font-size: 30px; color: var(--slate-pale); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 44px; }

/* Carousels (8, 13) */

.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__nav { display: flex; justify-content: center; gap: 28px; margin-top: 36px; }
.carousel__nav button {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: none; border: 1px solid var(--black); cursor: pointer; font-size: 22px;
    transition: background .2s, color .2s;
}
.carousel__nav button:hover { background: var(--black); color: var(--white); }
.carousel__nav--light button { background: var(--white); border-color: var(--white); color: var(--black); }
.carousel__nav--light button:hover { background: var(--slate-pale); border-color: var(--slate-pale); color: var(--black); }

.circles { gap: clamp(24px, 4.4vw, 64px); padding-inline: clamp(20px, 3vw, 44px); }
.circles li { flex: 0 0 calc((100% - 4 * clamp(24px, 4.4vw, 64px)) / 5); scroll-snap-align: start; text-align: center; }
.circles span { display: block; margin-top: 20px; font-size: clamp(15px, 1.2vw, 17px); font-weight: 500; line-height: 1.35; }

/* 9. When to call */

.grey--tight .h3 { margin-bottom: 28px; padding-inline: var(--gutter); }
.when { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.when a {
    position: relative; display: flex; align-items: center; gap: 22px;
    height: clamp(220px, 24vw, 330px); padding: 0 24px; align-items: flex-end; padding-bottom: 40px;
    background: var(--dark) center / cover no-repeat; color: var(--white); text-decoration: none;
}
.when a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(27, 34, 39, .7)); }
.when a > * { position: relative; }
.when__name { font-size: clamp(13px, 1.3vw, 18px); font-weight: 300; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4; align-self: flex-end; padding-bottom: 12px; }
.when a:hover .play__dot { background: var(--slate); }

/* 10. Banner */

.banner {
    position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: flex-end;
    min-height: clamp(380px, 52vw, 740px); padding: clamp(28px, 7vw, 100px);
    border-radius: var(--radius); background: var(--dark) center / cover no-repeat; color: var(--white); text-align: end;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(27, 34, 39, .78)); }
.banner__text { position: relative; }
.banner h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 8.4vw, 124px); line-height: 1; letter-spacing: -.02em; }
.banner p { margin-top: 20px; font-family: var(--serif); font-size: clamp(22px, 3.4vw, 48px); line-height: 1.2; }
.banner .btn { margin-top: 40px; }

/* 11. Three ways */

.ways__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; margin-bottom: clamp(36px, 4vw, 56px); }
.ways__head .h2 { max-width: 9em; text-align: center; }
.ways__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); }
.ways a {
    position: relative; overflow: hidden; display: flex; align-items: flex-end;
    height: clamp(300px, 34vw, 500px); padding: clamp(24px, 3.4vw, 50px);
    border-radius: var(--radius); background: var(--dark) center / cover no-repeat; color: var(--white); text-decoration: none;
}
.ways a::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(27, 34, 39, .72)); transition: background-color .3s; }
.ways a:hover::before { background-color: rgba(0, 0, 0, .15); }
.ways span { position: relative; padding: 0 28px 14px 0; border-bottom: 1px solid var(--white); font-family: var(--serif); font-size: clamp(22px, 2.3vw, 32px); line-height: 1.2; }
.ways small { display: block; margin-top: 8px; font-family: var(--sans); font-size: 14px; font-weight: 300; letter-spacing: .16em; text-transform: uppercase; }

/* 13. Quotes */

.quotes { position: relative; padding-block: clamp(64px, 8vw, 104px); background: var(--dark) center / cover no-repeat; color: var(--white); text-align: center; }
.quotes::before { content: ""; position: absolute; inset: 0; background: rgba(27, 34, 39, .82); }
.quotes > * { position: relative; }
.quotes .h2 { margin-top: 8px; }
.quotes .carousel { margin-top: 40px; }
.quotes__track { gap: clamp(20px, 4vw, 64px); padding-inline: calc(50% - min(270px, 40vw)); align-items: stretch; }
.quote {
    flex: 0 0 min(540px, 80vw); scroll-snap-align: center; display: flex; flex-direction: column;
    opacity: .38; transition: opacity .4s; text-align: start;
}
.quote.is-active { opacity: 1; }
.quote blockquote {
    position: relative; flex: 1; display: flex; gap: 20px;
    padding: clamp(28px, 3.4vw, 44px); border-radius: var(--radius); background: var(--slate);
    font-size: clamp(18px, 1.7vw, 21px); line-height: 1.75;
}
.quote blockquote::after {
    content: ""; position: absolute; left: 50%; bottom: -11px; width: 22px; height: 22px;
    background: var(--slate); transform: translateX(-50%) rotate(45deg);
}
.quote .icon { font-size: 40px; color: rgba(255, 255, 255, .35); margin-top: 4px; }
.quote__by { display: block; margin-top: 34px; text-align: center; font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.quotes > .btn { margin-top: 44px; }

/* 14. How it works */

.how { padding-bottom: 0; }
.how__tabs { display: flex; flex-wrap: wrap; gap: 0 clamp(8px, 2vw, 28px); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.how__tabs button {
    padding: 14px clamp(12px, 2vw, 28px); margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent;
    font-size: 17px; font-weight: 500; cursor: pointer;
}
.how__tabs button[aria-selected="true"] { color: var(--slate); border-color: var(--slate); }
.how__panel { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.how__panel[hidden] { display: none; }
.how__panel > div > * + * { margin-top: 24px; }
.how__panel .btn { margin-top: 36px; }
.how__panel .circle { max-width: 560px; justify-self: center; margin-bottom: -72px; z-index: 1; }

/* 15. Tips */

#tips { padding-top: clamp(112px, 12vw, 160px); }
.tips { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); }
.tips__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tips__grid li {
    position: relative; overflow: hidden; display: flex; align-items: flex-end;
    aspect-ratio: 1; padding: 22px; border-radius: var(--radius);
    background: var(--dark) center / cover no-repeat; color: var(--white);
}
.tips__grid li::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(27, 34, 39, .05) 25%, rgba(27, 34, 39, .82)); }
.tips__grid div { position: relative; }
.tips__grid strong { display: block; font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.3; }
.tips__grid span { display: block; margin-top: 8px; font-size: 15px; font-weight: 300; line-height: 1.5; }
.tips__text > * + * { margin-top: 20px; }

/* 16. Area */

#area .wrap > * + * { margin-top: 24px; }
#area .textlink { display: inline-block; }

/* 17. Clinic + FAQ */

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 30px); }
.facts li { padding: clamp(28px, 3vw, 44px); background: var(--white); border-radius: var(--radius); }
.facts .icon { font-size: 38px; color: var(--slate); }
.facts h3 { margin: 14px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 26px; }
.facts .textlink { display: inline-block; margin-top: 14px; }

.faqs { max-width: 900px; margin: clamp(56px, 7vw, 96px) auto 0; }
.faqs .h3 { margin-bottom: 28px; }
.faq { background: var(--white); border-radius: var(--radius); margin-top: 12px; }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    padding: 22px 28px; cursor: pointer; list-style: none;
    font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 300; font-size: 30px; line-height: 1; color: var(--slate); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 28px 26px; }

/* 18. Closing band + form */

.cta { background: var(--dark); color: var(--white); padding-block: clamp(64px, 8vw, 112px); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(40px, 7vw, 104px); }
.cta__text > p { margin-top: 24px; max-width: 30em; font-weight: 300; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.cta__actions:empty { display: none; }
.cta__text > .cta__warning { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 15px; color: var(--slate-pale); }

.form { padding: clamp(24px, 4vw, 44px); background: var(--white); color: var(--text); border-radius: var(--radius); }
.field { margin-bottom: 20px; }
.field label, .choice legend { display: block; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 500; }
.optional { font-weight: 300; color: #555; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 54px; padding: 13px 16px;
    background: var(--white); border: 1px solid rgba(0, 0, 0, .4); border-radius: 8px;
    font: 400 17px/1.4 var(--sans); color: var(--text);
}
.field textarea { resize: vertical; }
.field select {
    appearance: none; padding-right: 44px; cursor: pointer;
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2227' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--slate-pale); outline-offset: 1px; border-color: var(--slate); }
.field--invalid input { border-color: #a12d2d; }
.field small { display: block; margin-top: 6px; font-size: 15px; color: #a12d2d; }

.choice { margin: 0 0 20px; padding: 0; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice--three { grid-template-columns: repeat(3, 1fr); }
.choice legend { grid-column: 1 / -1; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span {
    display: grid; place-items: center; min-height: 54px; padding: 10px;
    border: 1px solid rgba(0, 0, 0, .4); border-radius: 8px;
    font-size: 16px; font-weight: 500; text-align: center; line-height: 1.3;
}
.choice input:checked + span { background: var(--slate); border-color: var(--slate); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }

.hp { position: absolute; inset-inline-start: -9999px; }

.form__error { margin-bottom: 24px; padding: 16px 18px; border-radius: 8px; font-weight: 500; }
.form__error { background: #f6e1df; color: #8a2424; }

/* Footer */

.footer { background: var(--white); padding-top: clamp(56px, 7vw, 88px); font-size: 16px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer .logo__name { font-size: 26px; }
.footer .logo + p { margin-top: 20px; }
.footer h4 { margin-bottom: 14px; font-size: 14px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer nav a { display: block; padding: 3px 0; }
.footer__legal { padding-block: 24px 96px; border-top: 1px solid var(--line); font-size: 14px; color: #555; }

/* Photo shade: background photos get an inset wash under their content, <img> photos are dimmed to match */

.hero, .area, .about__photo, .when a, .banner, .ways a, .tips__grid li {
    box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, var(--photo-shade));
}
img.circle { filter: brightness(calc(1 - var(--photo-shade))); }

/* Floating language, Instagram and request buttons */

.floats {
    position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40;
    display: flex; flex-direction: column; align-items: stretch; gap: 10px;
    transition: opacity .25s, transform .25s;
}
.floats__row { display: flex; flex-direction: column; gap: 10px; }
.floats.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.float {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 26px;
    border-radius: 8px; background: var(--slate); color: var(--white);
    font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: .02em; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22); transition: background .25s;
}
.float:hover { background: var(--black); }
.float--instagram { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af 80%, #515bd4); }
.float--instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b 50%, #8134af 80%, #515bd4); filter: brightness(1.08); }
.float--instagram .icon { width: 24px; height: 24px; }
.float--lang { background: var(--white); color: var(--black); }
.float--lang:hover { background: var(--grey); }
.float--lang:lang(ar) { font-family: "IBM Plex Sans Arabic", var(--sans); }

/* Arabic (right-to-left) adjustments */

[dir="rtl"] body * { letter-spacing: 0 !important; } /* spacing breaks joined Arabic letters */
[dir="rtl"] em { font-style: normal; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }
[dir="rtl"] .play:hover .play__dot { transform: translateX(-4px); }
[dir="rtl"] .hero::before { background: linear-gradient(-20deg, rgba(0, 0, 0, .6), transparent 50%); }
[dir="rtl"] .hero__title, [dir="rtl"] .h2 { line-height: 1.45; }
[dir="rtl"] .banner h2 { line-height: 1.3; }
[dir="rtl"] .field select { padding-right: 16px; padding-left: 44px; background-position: left 16px center; }

/* Responsive */

@media (max-width: 1100px) {
    .top__left { visibility: hidden; }
    .areas { grid-template-columns: repeat(3, 1fr); }
    .areas li:nth-child(n+4) { grid-column: span 1; }
    .area { height: 340px; }
    .circles li { flex-basis: calc((100% - 2 * clamp(24px, 4.4vw, 64px)) / 3); }
}

@media (max-width: 820px) {
    html { scroll-padding-top: 90px; }
    .top__row { grid-template-columns: 1fr auto; min-height: 76px; }
    .top__left, .top__phone, .top .btn { display: none; }
    .logo { text-align: start; }
    .logo__role { letter-spacing: .5em; margin-inline-end: 0; }
    .menu-toggle { display: inline-flex; align-items: center; }
    .menu { display: none; flex-direction: column; gap: 0; padding-block: 8px 16px; }
    .menu.is-open { display: flex; }
    .menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

    .hero { min-height: min(72vh, 600px); padding-top: 80px; }
    .card, .card--photo-left { grid-template-columns: 1fr; padding: 32px 24px; }
    .card--photo-right .card__photo, .card--photo-left .card__photo { margin: 0 auto; width: min(100%, 340px); }
    .card--photo-left .card__photo { order: -1; }
    .card--photo-right .card__photo::before { display: none; }
    .intro, .about__body, .how__panel, .tips, .cta__grid { grid-template-columns: 1fr; }
    .about__body { min-height: 0; }
    .about__photo { min-height: 440px; background-position: center 12%; }
    .areas { grid-template-columns: 1fr 1fr; gap: 10px; padding-inline: 10px; }
    .areas li:last-child { grid-column: 1 / -1; }
    .area { height: 260px; }
    .circles li { flex-basis: 46%; }
    .when, .ways, .facts { grid-template-columns: 1fr; }
    .when { gap: 12px; }
    .ways { padding-inline: var(--gutter); }
    .ways__head { justify-content: center; text-align: center; }
    .ways__actions { justify-content: center; }
    .banner { justify-content: center; text-align: center; align-items: flex-end; background-size: cover; background-position: center; }
    .banner::before { background: linear-gradient(transparent 20%, rgba(27, 34, 39, .7)); }
    .how__panel .circle { max-width: 340px; margin-bottom: -56px; }
    .footer__grid { grid-template-columns: 1fr; }
    .floats { left: 16px; right: 16px; bottom: 12px; align-items: flex-end; gap: 8px; }
    .floats__row { flex-direction: row-reverse; align-self: stretch; }
    .floats__row .float { flex: 1 1 0; }
    .float { gap: 8px; font-size: 15px; padding: 14px 10px; white-space: nowrap; }
    .float--lang { padding: 9px 18px; font-size: 14px; }
    .float:not(.float--instagram) .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
