/* Бренд-кейс Coral Club: палитра и шрифты из гайда бренда. Подключается после site.css и case.css. */
@font-face { font-family: "Suisse Intl"; src: url("/fonts/SuisseIntl-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Suisse Intl"; src: url("/fonts/SuisseIntl-Book.otf") format("opentype"); font-weight: 350; font-display: swap; }
@font-face { font-family: "Newton"; src: url("/fonts/Newton-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

body.coral { --green: #004643; --sage: #7fa2a1; --mist: #e5ecec; --lime: #d6e9b4; --bg: var(--mist); --text: var(--green); --text-2: #4f7472; background: var(--mist); font-weight: 300; font-size: 18px; line-height: 26px; }
.coral main { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.coral figure { margin: 0; min-width: 0; min-height: 0; overflow: hidden; }
.coral figure > img { width: 100%; height: 100%; object-fit: cover; }
.coral h1, .coral h2, .coral h3, .coral h4 { margin: 0; font-weight: 350; letter-spacing: -0.03em; }
.coral h3 { font-size: 32px; line-height: 36px; text-wrap: balance; }
.coral b { font-weight: 500; }
.coral em { font-family: "Newton", Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.01em; }
.coral ul, .coral ol { margin: 0; padding: 0; list-style: none; }

.logo { display: block; width: 170px; aspect-ratio: 150 / 26.4055; background: currentColor; -webkit-mask: url("/images/coral-brand/logo.svg") center / contain no-repeat; mask: url("/images/coral-brand/logo.svg") center / contain no-repeat; }

/* Навигация: бренд / продукт */
.seg { pointer-events: auto; display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,0.55); -webkit-backdrop-filter: blur(16px) saturate(1.8); backdrop-filter: blur(16px) saturate(1.8); border: 1px solid rgba(255,255,255,0.6); box-shadow: 0 10px 28px -10px rgba(10,30,30,0.35); font-size: 14px; line-height: 20px; font-weight: 500; }
.seg > * { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 16px; border-radius: 999px; white-space: nowrap; }
.seg a[aria-current] { background: var(--green); color: var(--mist); }
.seg [aria-disabled] { color: var(--text-2); }
.seg small { font-size: 11px; font-weight: 400; }

/* Сетка */
.row { display: grid; gap: var(--gap); margin-block-start: var(--gap); }
.r-two { grid-template-columns: 1fr 1fr; }
.r-three { grid-template-columns: repeat(3, 1fr); }
.tile { background: #f4f7f7; padding: clamp(20px, 3.4vw, 52px); height: auto; border-radius: 0; flex: none; overflow: hidden; min-width: 0; }
.tile.dark { background: var(--green); color: var(--mist); }
.tile.light { background: #f4f7f7; }
.full { margin-block-start: var(--gap) !important; }
.full img { height: auto !important; }

/* Заголовок главы */
.ch { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: start; padding: clamp(88px, 11vw, 176px) clamp(0px, 2vw, 32px) clamp(32px, 4vw, 64px); scroll-margin-top: 20px; }
.ch-n { font-size: 14px; line-height: 20px; color: var(--sage); padding-top: 10px; }
.ch h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1; text-wrap: balance; }
.ch-text { max-width: 34em; font-size: 20px; line-height: 28px; padding-top: 6px; }

/* Хиро */
.hero-b { background: var(--green); color: var(--mist); margin-block-start: var(--pad); min-height: min(88svh, 820px); padding: 112px clamp(20px, 6vw, 96px) 48px; display: flex; flex-direction: column; }
.hero-b > .logo { width: 180px; }
.hero-b h1 { font-size: clamp(52px, 9.4vw, 148px); line-height: 0.98; letter-spacing: -0.045em; margin-block: auto 0; padding-top: 48px; }
.hero-b h1 em { color: var(--lime); }
.hero-b > p { font-size: clamp(20px, 2vw, 28px); line-height: 1.35; max-width: 30em; margin-block-start: 32px; }
.hero-b dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 56px 0 0; padding-top: 24px; border-top: 1px solid rgba(229,236,236,0.22); font-size: 16px; line-height: 22px; }
.hero-b dt { color: var(--sage); margin-bottom: 4px; }
.hero-b dd { margin: 0; max-width: 32em; }

/* 01 */
.r-start { grid-template-columns: 5fr 7fr; }
.nps { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.nps strong { font-weight: 300; font-size: clamp(96px, 13vw, 208px); line-height: 0.9; letter-spacing: -0.06em; color: var(--lime); }
.nps strong small { font-size: 0.42em; letter-spacing: -0.02em; }
.nps p { font-size: 24px; line-height: 30px; max-width: 14em; }
.shift table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.shift th { text-align: left; font-weight: 400; font-size: 14px; color: var(--sage); padding: 0 0 12px; width: 44%; }
.shift td { border-top: 1px solid rgba(0,70,67,0.14); padding: 20px 12px 20px 0; font-size: clamp(18px, 2vw, 28px); line-height: 1.25; vertical-align: top; }
.shift td s { color: var(--sage); text-decoration-thickness: 1px; }

/* 02 */
.r-principles { grid-template-columns: 5fr 7fr; }
.values { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.values .big { font-size: clamp(32px, 4vw, 60px); line-height: 1.08; letter-spacing: -0.035em; }
.values .big em { color: var(--lime); }
.values li { display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(229,236,236,0.2); font-size: 20px; line-height: 26px; }
.values li span { color: var(--sage); min-width: 1em; }

/* 03 */
.persona { display: flex; flex-direction: column; gap: var(--gap); }
.persona figure { aspect-ratio: 1; }
.persona figure img { object-position: 50% 25%; }
.persona .tile { flex: 1; }
.persona .tile p { margin-top: 16px; max-width: 30em; }
.coral .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { border: 1px solid rgba(0,70,67,0.25); border-radius: 999px; padding: 4px 14px; font-size: 14px; line-height: 20px; }
.persona blockquote { margin: 40px 0 0; font-family: "Newton", Georgia, serif; font-style: italic; font-size: clamp(26px, 2.8vw, 40px); line-height: 1.15; }

/* 04 */
.logo-tile { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.logo-tile .logo { width: 52%; }
.clear { display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 32px; }
.clear p { align-self: flex-start; max-width: 24em; }
.clear-box { --o: 34px; position: relative; margin: auto; width: min(100%, 440px); padding: calc(var(--o) * 2) calc(var(--o) * 2 + 6px); border: 1px solid var(--sage); }
.clear-box .logo { width: 100%; outline: 1px dashed var(--sage); outline-offset: 0; }
.clear-box i { position: absolute; width: calc(var(--o) * 2); height: var(--o); background: radial-gradient(circle closest-side, transparent 58%, var(--sage) 60%, var(--sage) 98%, transparent 100%) left / var(--o) var(--o) repeat-x; opacity: 0.75; }
.clear-box i:nth-of-type(1) { left: calc(50% - var(--o)); top: 0; width: var(--o); height: calc(var(--o) * 2); background-repeat: repeat-y; background-position: top; }
.clear-box i:nth-of-type(2) { left: calc(50% - var(--o)); bottom: 0; width: var(--o); height: calc(var(--o) * 2); background-repeat: repeat-y; background-position: bottom; }
.clear-box i:nth-of-type(3) { left: 3px; top: calc(50% - var(--o) / 2); }
.clear-box i:nth-of-type(4) { right: 3px; top: calc(50% - var(--o) / 2); }
.place { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.place figure { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; }
.place .logo { position: absolute; top: 8%; left: 8%; width: 38%; color: var(--green); }
.place figure:nth-child(2) .logo, .place figure:nth-child(4) .logo { color: #fff; }
.place figure:nth-child(2) img { filter: blur(3px); transform: scale(1.03); }
.place figure:nth-child(3) .logo { top: 44%; left: 40%; color: #fff; }
.place figure:nth-child(4) .logo { top: 31%; left: 36%; }
.place figcaption { position: absolute; left: 8px; bottom: 8px; right: 8px; width: fit-content; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.92); color: var(--green); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 13px; line-height: 17px; font-weight: 400; }
.place figcaption::before, .dd h4 i { content: "✓"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #20927b; color: #fff; font-style: normal; font-size: 11px; }
.place .no figcaption::before { content: "✕"; }
.place .no figcaption::before { background: #c9362b; }
.bad .tile { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 40px; aspect-ratio: 4 / 2.6; }
.bad .tile > span { margin-block: auto; }
.bad p { align-self: flex-start; font-size: 16px; line-height: 20px; }
.b-squash { transform: scaleY(0.55) scaleX(1.12); }
.b-shadow { filter: drop-shadow(4px 6px 3px rgba(0,0,0,0.5)) drop-shadow(0 0 14px #20927b); }
.b-tilt { transform: rotate(-12deg); }

/* 05 */
.line-full, .line-v, .line-short { display: grid; place-items: center; }
.line-full { background: #004643; padding: clamp(0px, 4vw, 64px) 0; }
.line-full img { width: min(100%, 1060px) !important; }
.line-v, .line-short { aspect-ratio: 4 / 3; overflow: hidden; }
.line-v { background: #004643; }
.line-short { background: #e3ebeb; box-shadow: inset 0 0 0 1px rgba(0,70,67,0.08); }
.line-v { position: relative; }
.coral .line-v img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }
.coral .line-short img { width: 66%; height: auto; }
.r-line { grid-template-columns: 2fr 4.5fr 2fr; height: min(46vw, 640px); }
.r-line figure, .r-color figure { min-height: 0; overflow: hidden; }

/* 06 */
.pal-main { display: grid; grid-template-columns: 6fr 3fr 2fr; gap: var(--gap); height: 420px; }
.sw { appearance: none; border: 0; margin: 0; cursor: copy; font: inherit; text-align: left; background: var(--c); color: var(--green); padding: 20px 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; transition: filter 0.2s; }
.sw:hover { filter: brightness(1.04); }
.sw:focus-visible { outline: 2px solid var(--green); outline-offset: -5px; border-radius: 0; }
.sw-dark { color: #fff; }
.sw-dark:focus-visible { outline-color: #fff; }
.sw-hex { font-size: 18px; line-height: 22px; font-weight: 400; }
.sw-meta { font-size: 13px; line-height: 18px; opacity: 0.75; }
.pal-col { display: flex; flex-direction: column; }
.pal-col h3 { font-size: 20px; line-height: 24px; padding: 24px 0 12px; }
.pal-col .sw { height: 112px; }
.r-color { grid-template-columns: 2fr 1fr; height: min(42vw, 600px); }
.bottles figure { aspect-ratio: 1; background: #fff; }

/* 07 */
.aa { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 16 / 11; }
.aa span { font-size: clamp(120px, 17vw, 270px); line-height: 0.9; letter-spacing: -0.05em; }
.aa-newton span { font-family: "Newton", Georgia, serif; font-style: italic; color: var(--lime); }
.aa p { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.scale { display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.scale p { --h: clamp(48px, 5.6vw, 88px); line-height: 1.1; letter-spacing: -0.03em; }
.scale small { display: block; font-size: 13px; line-height: 18px; letter-spacing: 0; color: var(--sage); margin-bottom: 4px; font-weight: 400; }
.scale .s1 { font-size: var(--h); font-weight: 350; }
.scale .s2 { font-size: calc(var(--h) * 0.66); font-weight: 400; }
.scale .s3 { font-size: calc(var(--h) * 0.25); font-weight: 500; letter-spacing: -0.01em; }
.scale .s4 { font-size: max(16px, calc(var(--h) * 0.2)); font-weight: 300; letter-spacing: 0; }
.scale .s5 { font-size: max(13px, calc(var(--h) * 0.15)); font-weight: 400; letter-spacing: 0; }
.poster { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 600px; }
.poster .logo { width: 130px; }
.poster > p { font-size: clamp(44px, 5.4vw, 84px); line-height: 1.04; letter-spacing: -0.035em; max-width: 8.5em; }
.poster em { color: var(--lime); }
.poster ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.poster li { border-top: 1px solid rgba(229,236,236,0.2); padding: 12px 0; font-size: 15px; line-height: 20px; }

/* 08 */
.cat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 2.2fr) minmax(0, 4.8fr); gap: var(--gap); margin-block-start: clamp(48px, 6vw, 96px); }
.ch + .cat { margin-block-start: 0; }
.cat-small { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.cat-small figure { aspect-ratio: 4 / 3.6; overflow: hidden; }
.cat-main { position: relative; }
.cat-main img { position: absolute; inset: 0; }
.cat-text { display: flex; flex-direction: column; gap: 24px; }
.cat-text h3 { font-size: clamp(32px, 3.4vw, 52px); line-height: 1; }
.cat-text p { max-width: 26em; }
.cat-text ul { margin-top: auto; }
.cat-text li { border-top: 1px solid rgba(0,70,67,0.14); padding: 12px 0; font-size: 16px; line-height: 22px; }
.dd { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-block-start: var(--gap); }
.dd-col { background: #f4f7f7; padding: clamp(16px, 2vw, 28px); display: flex; flex-direction: column; gap: 8px; }
.dd h4 { display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 28px; }
.dd h4 i::before { content: "✓"; font-size: 12px; line-height: 1; }
.dd-dont h4 i { background: #c9362b; }
.dd .dd-dont h4 i::before { content: "✕"; }
.dd p { font-size: 16px; line-height: 22px; min-height: 44px; }
.dd-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: auto; }
.dd-row figure { aspect-ratio: 4 / 5; overflow: hidden; }

/* 09 */
.prod { display: grid; grid-template-columns: 5fr 3.5fr 3.5fr; grid-auto-rows: clamp(160px, 22vw, 340px); gap: var(--gap); }
.prod figure { min-height: 0; overflow: hidden; }
.prod-run { grid-row: span 2; }

/* 10 */
.ai { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.ai .tile { padding: clamp(16px, 2vw, 28px); }
.ai h3 { font-size: 24px; line-height: 28px; }
.ai p { font-size: 15px; line-height: 20px; margin: 4px 0 20px; }
.ai .tile > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: var(--gap); aspect-ratio: 720 / 298; }
.ai .tile > div.three { grid-template-columns: 242fr 219fr 217fr; }
.ai figure { position: relative; }
.ai figure img { position: absolute; inset: 0; }

/* 11 */
.covers figure { aspect-ratio: 0.8; }
.coral .foot { padding-top: 72px; }

@media (max-width: 900px) {
  .ch { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-inline: 8px; }
  .ch h2 { font-size: clamp(32px, 9.6vw, 56px); }
  .ch-n { padding: 0; }
  .r-start, .r-principles, .r-two { grid-template-columns: 1fr; }
  .r-principles .ph { aspect-ratio: 4 / 5; }
  .cat { grid-template-columns: 1fr; }
  .cat-small { grid-template-rows: none; grid-template-columns: repeat(4, 1fr); }
  .cat-small figure { aspect-ratio: 4 / 5; }
  .cat-main { aspect-ratio: 4 / 5; }
  .dd, .ai { grid-template-columns: 1fr; }
  .dd p { min-height: 0; }
}
@media (max-width: 600px) {
  body.coral { font-size: 16px; line-height: 23px; }
  .coral h3 { font-size: 26px; line-height: 30px; }
  .ch-text { font-size: 17px; line-height: 24px; }
  .bar .glass:first-child { font-size: 0; width: 40px; justify-content: center; padding: 0; }
  .bar .glass:first-child::before { content: "←"; font-size: 18px; }
  .bar .glass { padding: 0 14px; }
  .seg > * { padding: 0 10px; }
  .seg small { display: none; }
  .hero-b { padding-top: 88px; min-height: 86svh; }
  .hero-b dl { grid-template-columns: 1fr; margin-top: 32px; }
  .r-three { grid-template-columns: 1fr; }
  .r-line, .r-color { grid-template-columns: 1fr; height: auto; }
  .r-line figure { aspect-ratio: 4 / 5; }
  .r-line figure:nth-child(2), .r-color figure { aspect-ratio: 3 / 2; }
  .pal-main { grid-template-columns: 1fr; height: auto; }
  .pal-main .sw { height: 140px; }
  .pal-main .sw:first-child { height: 240px; }
  .pal-col .sw { height: 80px; }
  .clear-box { --o: 22px; }
  .poster { min-height: 520px; }
  .poster ul { grid-template-columns: 1fr; }
  .shift td { font-size: 17px; }
  .prod { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .prod-run { grid-column: 1 / -1; grid-row: span 3; }
}
