/* =============================================
   SHINSETSU HAIR — Refactored Design System
   ============================================= */

:root {
    /* Colors */
    --color-bg: #160706;
    /* Deep dark brownish/purple updated */
    --color-pink: #D54C73;
    /* Vibrant accent pink */
    --color-pink-hover: #E8749A;
    --color-text: #FFFFFF;
    --color-text-muted: #AFAFAF;
    --color-border: #443C42;
    --color-input-bg: rgba(255, 255, 255, 0.05);

    /* Layout */
    --container-width: 1240px;
    --gutter: 20px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =============================================
   FONTS
   ============================================= */
@font-face {
    font-family: 'Belepotan';
    src: url('fonts/Belepotan/BelepotanRus.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LT Superior';
    src: url('fonts/LT_superior/LTSuperiorRegular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LT Superior';
    src: url('fonts/LT_superior/LTSuperiorBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

body {
    font-family: 'LT Superior', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Belepotan', serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.pink {
    color: var(--color-pink);
}

.mb-large {
    margin-bottom: 4rem;
}

.mt-sm {
    margin-top: 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--color-pink);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--color-pink-hover);
    transform: translateY(-2px);
}

.btn-social {
    padding: 12px 32px;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: white;
    transition: opacity 0.3s;
}

.btn-vk,
.btn-tg,
.btn-call {
    background-color: #D54C73;
    /* All buttons same pink */
}

.btn-social:hover {
    opacity: 0.9;
}

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background-color: #2b0a16;
    /* Dark burgundy */
    border-bottom: 1px solid #4a1225;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header__burger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
}

.header__burger svg {
    order: -1;
}

.header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header__logo-text {
    font-family: 'Belepotan', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-pink);
    text-transform: uppercase;
}

.header__cta {
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: white;
}

.mobile-nav {
    display: none;
    /* Implement JS toggle */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 17, 24, 0.98);
    z-index: 99;
    padding-top: 80px;
}

.mobile-nav__list {
    text-align: center;
}

.mobile-nav__link {
    display: block;
    font-size: 24px;
    padding: 20px;
    color: white;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0.8;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-top: 100px;
    /* Offset for header */
}

.hero__badge {
    position: absolute;
    top: 50px;
    right: -450px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.hero__badge-accent {
    color: var(--color-pink);
    font-weight: 700;
}

.hero__title {
    font-family: 'Belepotan', serif;
    /* Using Inter for the clean look in screenshot */
    font-weight: 600;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

/* =============================================
   CALCULATOR
   ============================================= */
.calculator {
    padding: 80px 0;
}

.section-title {
    font-family: 'Belepotan', serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.section-desc {
    color: var(--color-text-muted);
    margin-bottom: 40px;
    font-size: 14px;
}

.calculator__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: flex-start;
}

/* Form Styles */
.calc-form {
    background: #191919;
    /* Gray backing */
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.calc-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 12px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    background: var(--color-input-bg);
    border: 1px solid #FFFFFF;
    border-radius: 0;
    /* Sharp edges as per design */
    padding: 12px 16px;
    color: white;
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-pink);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='white' stroke-opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-select option {
    background-color: var(--color-bg);
}

.full-width {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Photo Upload */
.photo-upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.photo-upload-box {
    position: relative;
    height: 100px;
    background: #A8A8A8;
    /* Light grey placeholder */
    color: #1A1118;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
}

.photo-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.photo-label {
    font-size: 12px;
    font-weight: 500;
}

.photo-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Result Box */
.calc-result {
    background: white;
    color: black;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
}

.calc-result__label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.calc-result__value {
    font-size: 24px;
    font-weight: 700;
}

.full-width {
    width: 100%;
}

/* Mascot */
.calculator__mascot-col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.calculator__mascot-col::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(143, 50, 75, 0.6) 0%, rgba(22, 7, 6, 0) 70%);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

.calculator__mascot {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* =============================================
   EXAMPLES SECTION
   ============================================= */
.examples {
    padding: 60px 0;
    margin-bottom: 60px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: none;
    padding-bottom: 20px;
}

.examples__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.example-card {
    position: relative;
}

.example-card__img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.example-card__label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: 'Belepotan', serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* =============================================
   PROCESS SECTION (Timeline)
   ============================================= */
.process {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%);
}

.timeline__item {
    display: flex;
    margin-bottom: 60px;
    align-items: center;
}

.timeline__left,
.timeline__right {
    flex: 1;
    padding: 0 40px;
}

.timeline__center {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.timeline__dot {
    width: 16px;
    height: 16px;
    background: var(--color-pink);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(213, 76, 115, 0.2);
}

.timeline__title {
    font-size: 24px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.timeline__text {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.align-right {
    text-align: right;
}

/* Zigzag alignment */
.timeline__item .timeline__left {
    text-align: right;
}

.timeline__item .timeline__right {
    text-align: left;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
    background-color: var(--color-pink);
    padding: 60px 0;
    color: white;
}

.faq .section-title {
    color: white;
    margin-bottom: 40px;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background: white;
    color: black;
    margin-bottom: 12px;
    border-radius: 0;
    overflow: hidden;
}

.faq__item.active {
    /* Style for active state */
}

.faq__question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Question active logic needed in JS */

.faq__answer {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
    /* JS toggle */
}

.faq__item.active .faq__answer {
    display: block;
}

.faq__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.cta-banner__bg {
    position: absolute;
    inset: 0;
}

.cta-banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(213, 76, 115, 0.4);
    /* Pinkish overlay */
    mix-blend-mode: multiply;
}

.cta-banner__content {
    position: relative;
    z-index: 2;
}

.cta-banner__title {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cta-banner__subtitle {
    font-size: 16px;
    margin-bottom: 30px;
}

.cta-banner__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-banner__buttons .btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 160px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background-color: #0F090D;
    /* Slightly darker than body */
    padding: 60px 0 20px;
    font-size: 12px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer__logo-text {
    font-family: 'Belepotan', serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.footer__desc a {
    color: var(--color-pink);
    text-decoration: underline;
}

.footer__heading {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer__menu li {
    margin-bottom: 12px;
}

.footer__menu a {
    color: var(--color-text-muted);
    font-family: 'Belepotan', serif;
    transition: color 0.3s;
}

.footer__menu a:hover {
    color: white;
}

.footer__col--form {
    background: transparent;
}

.footer__form-title {
    color: white;
    margin-bottom: 16px;
}

.footer__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__input {
    background: transparent;
    border: none;
    padding: 8px 0;
    color: white;
    font-size: 12px;
    outline: none;
    width: 100%;
    margin-bottom: 8px;
    font-family: 'LT Superior', sans-serif;
}

.footer__form input:nth-child(1),
.footer__form input:nth-child(3) {
    border-bottom: none;
}

.footer__form input:nth-child(2),
.footer__form input:nth-child(4) {
    border-bottom: 1px solid #D54C73;
}

.footer__form .btn-primary {
    width: auto;
    display: inline-block;
    padding: 10px 24px;
    font-size: 12px;
    margin-top: 10px;
    align-self: flex-start;
}

.footer__input:focus {
    border-bottom-color: var(--color-pink);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
}

.footer__policies {
    display: flex;
    gap: 20px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .calculator__grid {
        grid-template-columns: 1fr;
    }

    .calculator__mascot-col {
        order: -1;
        margin-bottom: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline__item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 20px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 20px;
        padding-bottom: 40px;
    }

    .timeline__center {
        display: none;
    }

    /* Simplified for mobile */
    .timeline__left,
    .timeline__right {
        padding: 0;
        text-align: left !important;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header__container {
        padding: 0 20px;
    }

    .header__logo-text {
        font-size: 20px;
    }

    .hero__title {
        font-size: 32px;
    }

    .calc-form__row {
        grid-template-columns: 1fr;
    }

    .photo-upload-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .examples__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .cta-banner__buttons {
        flex-direction: column;
    }
}