*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

:root {
    --font-family: "Helvetica Neue", Arial, sans-serif;
    --font-red-ring: "Red Ring", sans-serif;
    --color-accent: #ff4a2b;
    --color-text: #000000;
    --color-white: #ffffff;
    --color-card: #aecee5;
    --card-width: 366px;
    --card-height: 250px;
    --card-radius: 30px;
    --card-gap: 31px;
    --shadow-btn: 0 8px 24px rgba(255, 74, 43, 0.35);
    --shadow-card: 0 7px 43px 0 rgba(0, 0, 0, 0.21);
    --color-border: #e5e5e5;
    --color-muted: #8a8a8a;
}

html {
    font-family: var(--font-red-ring);
}

body {
    margin: 0;
    font-family: var(--font-red-ring);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-white);
}

button,
input,
textarea,
select {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background-color: transparent;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    min-height: 40px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}

.header__nav .btn {
    width: 131px;
    height: 28px;
    padding: 0;
    border-radius: 14px;
    font-size: 14px;
}

.header__link {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.header__logo {
    height: 40px;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.is-scrolled .header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.is-scrolled .header__logo {
    opacity: 1;
    visibility: visible;
}

.is-scrolled .hero__logo {
    opacity: 0;
}

.btn {
    display: inline-grid;
    place-items: center;
    border: none;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-red-ring);
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
    text-align: center;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
    -webkit-font-smoothing: antialiased;
}

.btn:hover {
    opacity: 0.9;
}

.btn--sm {
    padding: 13px 20px;
    border-radius: 22px;
    font-size: 14px;
}

.btn--lg {
    padding: 14px 30px;
    border-radius: 22px;
    font-size: 18px;
    box-shadow: var(--shadow-btn);
}

.hero__content > .btn--lg {
    width: 190px;
    height: 44.4px;
    padding: 0;
    border-radius: 22px;
    font-size: 18px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    align-items: self-start;
    column-gap: 8px;
    padding-top: 48px;
    padding-bottom: 196px;
    min-height: 70vh;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__logo {
    width: 220px;
    height: auto;
    margin-bottom: 62px;
    transition: opacity 0.25s ease;
}

.hero__title {
    margin: 0 0 23px;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero__title-accent {
    color: var(--color-accent);
}

.hero__title-dot {
    display: inline-block;
    width: 0.22em;
    height: 0.22em;
    margin-left: 0.06em;
    border-radius: 50%;
    background-color: currentColor;
    vertical-align: 0.08em;
}

.hero__subtitle {
    margin: 0 0 23px;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
}

.hero__text {
    margin: 0 0 29px;
    max-width: 360px;
    font-size: 24px;
    line-height: 1.35;
}

.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__table {
    width: 110%;
    max-width: 820px;
    height: auto;
    object-fit: contain;
    margin-left: auto;
    z-index: -1;
    margin-top: 120px;
}

.text-accent {
    color: var(--color-accent);
}

.section {
    margin-bottom: 80px;
}

.section--promo {
    margin-top: 100px;
    margin-bottom: 0;
}

.promo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    width: 1160px;
    max-width: 100%;
    height: 250px;
    margin: 0 auto;
    margin-bottom: 97px;
    padding: 36px 41px;
    border-radius: var(--card-radius);
    background: url("../assets/images/background.jpg") center / cover no-repeat;
    color: var(--color-white);
    box-shadow: 0 7px 43px 0 rgba(0, 0, 0, 0.21);
}

.promo__title {
    margin: 0;
    font-family: var(--font-red-ring);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-white);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.51);
}

.promo__text {
    margin: 0 0 8px;
    font-family: var(--font-red-ring);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--color-white);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.51);
}

.promo .btn {
    width: 190px;
    height: 44.4px;
    padding: 0;
    border-radius: 22px;
    font-size: 18px;
}

.section--business {
    margin-bottom: 109px;
}

.section__title {
    margin: 0 0 34px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: var(--card-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.cards--grid {
    row-gap: 48px;
}

.cards__item {
    width: var(--card-width);
}

.cards__media {
    width: var(--card-width);
    height: var(--card-height);
    border-radius: var(--card-radius);
    background-color: var(--color-card);
    box-shadow: var(--shadow-card);
    margin-bottom: 41px;
    overflow: hidden;
}

.cards__media--booking,
.cards__media--community,
.cards__media--tournament {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 120px 120px;
}

/* phone + calendar: booking */
.cards__media--booking {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a8fb5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2' ry='2'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3Cpath d='M9 7h6M9 11h4'/%3E%3C/svg%3E");
}

/* people: community */
.cards__media--community {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a8fb5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='7' r='3'/%3E%3Ccircle cx='16' cy='8' r='2.5'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 6-6h2a6 6 0 0 1 6 6v1'/%3E%3Cpath d='M19 14a4 4 0 0 1 3 4v1'/%3E%3C/svg%3E");
}

/* trophy: tournaments */
.cards__media--tournament {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a8fb5' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4a2 2 0 0 1-2-2V5h4'/%3E%3Cpath d='M18 9h2a2 2 0 0 0 2-2V5h-4'/%3E%3Cpath d='M6 5h12v6a6 6 0 0 1-12 0V5z'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M8 21h8'/%3E%3C/svg%3E");
}

.cards__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--card-radius);
}

.cards__caption {
    margin: 24px 0 0;
    font-family: var(--font-red-ring);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.cards__caption--bold {
    font-weight: 700;
}

.social {
    display: flex;
    align-items: center;
    gap: 48px;
}

.social__link {
    display: block;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.social__link:hover {
    opacity: 0.85;
}

.social__icon {
    width: 128px;
    height: 128px;
    object-fit: contain;
}

/* Helvetica Neue — исключения из Red Ring */
.header__link,
.page2-back,
.page2-header__label,
.page2-why__text,
.header .btn,
.hero__content > .btn,
.promo .btn,
.page2-header__nav .btn,
.page2-hero__content .btn {
    font-family: var(--font-family);
}

.section--faq * {
    font-family: var(--font-family);
}

.section--faq .section__title {
    font-family: var(--font-red-ring);
}

.faq {
    border-top: 1px solid var(--color-border);
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 21px 0 21px 25px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
}

.faq__question {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.faq__chevron {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.faq__item--open .faq__chevron {
    margin-top: 4px;
    border-color: var(--color-muted);
    transform: rotate(-135deg);
}

.faq__panel {
    padding: 0 0 24px 25px;
}

.faq__panel[hidden] {
    display: none;
}

.faq__answer {
    margin: 0;
    max-width: 900px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--color-text);
}

.section--faq {
    margin-bottom: 0;
}

.copyright {
    margin: 95px 0px 30px 0px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #999999;
}

/* Safari: текст в кнопках визуально ниже центра из-за метрик шрифта */
@supports not (text-box-trim: trim-both) {
    @supports (hanging-punctuation: first) {
        .btn {
            translate: 0 -0.06em;
        }
    }
}
