/* ============================================
   buhrf22.ru — Corporate Cyan/Navy Design
   ============================================ */

/* ===== Variables ===== */
:root {
    --bg-main: #F0F2F6;
    --white: #FFFFFF;
    --navy: #1A2340;
    --cyan: #2BB5D0;
    --cyan-hover: #1E9BB5;
    --cyan-light: #E8F7FA;
    --text: #3D4560;
    --text-muted: #8892A4;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(43, 181, 208, 0.25);

    --radius: 12px;
    --border: rgba(26, 35, 64, 0.08);

    --font: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--white);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--navy);
    font-weight: 800;
}

/* ===== Header ===== */
.header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header__top {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__icon {
    width: 40px;
    height: 40px;
    background: var(--cyan);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.logo__icon::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--white);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo__text-group {
    display: flex;
    flex-direction: column;
}

.logo__text {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1.2;
}

.logo__tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.header__contacts {
    display: flex;
    gap: 32px;
}

.header__contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--cyan-light);
    color: var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
}

.contact-link:hover {
    color: var(--cyan);
}

.contact-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.header__bottom-inner {
    display: flex;
    align-items: center;
    height: 50px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 14px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--cyan);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--cyan);
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}


/* ===== Hero ===== */
.hero {
    padding-top: 170px;
    /* Accounts for 2-row header */
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero__container {
    display: flex;
    align-items: stretch;
    gap: 60px;
}

.hero__left {
    flex: 0 0 46%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hero__image-wrapper {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    min-height: 500px;
}

.hero__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
}

.hero__cards {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: -40px;
    /* Overlap image */
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    border-bottom: 3px solid var(--cyan);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card__icon {
    width: 36px;
    height: 36px;
    background: var(--cyan-light);
    color: var(--cyan);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-card__text {
    display: flex;
    flex-direction: column;
}

.feature-card__text strong {
    font-size: 0.9rem;
    color: var(--navy);
}

.feature-card__text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hero__right {
    flex: 0 0 calc(54% - 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

.hero__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero__title {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--navy);
}

.hero__subtitle {
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 32px;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn--primary {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-hover));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(43, 181, 208, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

.hero__actions {
    margin-bottom: 40px;
}

/* Stats in hero */
.hero__stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.hero__stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--cyan);
    line-height: 1;
    display: flex;
    align-items: flex-start;
}

.stat-plus {
    font-size: 1.5rem;
    margin-top: 2px;
}

.stat-desc {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-top: 8px;
    text-transform: uppercase;
    transition: var(--transition);
}

.hero__stat-item:hover .stat-num {
    transform: scale(1.1);
    color: var(--navy);
}

.hero__stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border);
}

.hero__secondary-image-wrapper {
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.hero__secondary-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Sections Global ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--cyan-light);
    color: var(--cyan);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 30px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

/* ===== Services Grid ===== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--cyan-light);
}

.service-card__icon {
    width: 60px;
    height: 60px;
    background: var(--bg-main);
    color: var(--cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--cyan);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.service-card__title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== Advantages Grid ===== */
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.adv-card {
    background: var(--bg-main);
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.adv-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.adv-card__val {
    font-size: 4rem;
    font-weight: 900;
    color: var(--cyan);
    line-height: 1;
    margin-bottom: 16px;
}

.adv-card__title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.adv-card__text {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ===== Workflow Grid ===== */
.workflow__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    text-align: center;
    position: relative;
}

/* Optional line between steps */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--border);
}

.step-card__num {
    width: 60px;
    height: 60px;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.25rem;
    font-weight: 800;
}

.step-card:hover .step-card__num {
    background: var(--cyan);
    transform: scale(1.1);
    transition: var(--transition);
}

.step-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.step-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .workflow__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .step-card:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .workflow__grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Contacts ===== */
.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    max-width: 1100px;
    margin: 0 auto;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-box__icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--cyan-light);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-box__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-box__text span {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.contact-box__text a,
.contact-box__text strong {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
}

.contact-box__text a:hover {
    color: var(--cyan);
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
}

.form__input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-main);
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--navy);
    transition: var(--transition);
}

.form__input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(43, 181, 208, 0.1);
}

.form__input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

select.form__input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233D4560' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

textarea.form__input {
    resize: vertical;
    min-height: 100px;
}

/* Custom Checkbox */
.form__group--checkbox {
    margin: 10px 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
    line-height: 1.4;
    color: var(--text-muted);
    transition: var(--transition);
}

.checkbox-container:hover {
    color: var(--navy);
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-container:hover input~.checkbox-checkmark {
    border-color: var(--cyan);
}

.checkbox-container input:checked~.checkbox-checkmark {
    background-color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(43, 181, 208, 0.2);
}

.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkbox-checkmark:after {
    display: block;
}

.checkbox-container .checkbox-checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

.form__btn {
    width: 100%;
    margin-top: 10px;
}

.btn:disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

/* Form Feedback States */
.form__status {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.form__status--success {
    display: block;
    background: #e6f7ed;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form__status--error {
    display: block;
    background: #fdf2f2;
    color: #d32f2f;
    border: 1px solid #f9d7d7;
}

.form__input.error {
    border-color: #d32f2f;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.form__disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.form__disclaimer a {
    color: var(--cyan);
    text-decoration: underline;
}

/* ===== Pricing ===== */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--cyan-light);
}

.pricing-card__header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border);
}

.pricing-card__name {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.pricing-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.price-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
}

.price-val {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--cyan);
    line-height: 1;
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.pricing-card__list li {
    font-size: 0.95rem;
    color: var(--text);
    padding: 10px 0;
    padding-left: 32px;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.pricing-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--cyan);
    font-weight: 900;
}

.btn--secondary {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--border);
}

.btn--secondary:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 1024px) {
    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .pricing__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .contacts__inner {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .form__row {
        grid-template-columns: 1fr;
    }

    .contacts__inner {
        padding: 30px 20px;
    }
}

/* ===== Footer ===== */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer__copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Reveal Animations ===== */
.reveal,
.anim-fade-up,
.anim-fade-right,
.anim-fade-left {
    opacity: 0;
}

.anim-fade-up {
    transform: translateY(30px);
}

.anim-fade-right {
    transform: translateX(-30px);
}

.anim-fade-left {
    transform: translateX(30px);
}

/* In JS we add class .reveal--visible */
.reveal--visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Stagger for hero */
.hero__left.reveal--visible {
    transition-duration: 1s;
}

.hero__right.reveal--visible {
    transition-duration: 1s;
    transition-delay: 0.2s;
}

.hero__cards.reveal--visible {
    transition-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero__container {
        flex-direction: column;
        gap: 40px;
    }

    .hero__left,
    .hero__right {
        flex: 0 0 auto;
        width: 100%;
    }

    .hero__cards {
        margin-top: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .services__grid,
    .advantages__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header__contacts {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav {
        position: fixed;
        inset: 0;
        background: var(--white);
        flex-direction: column;
        padding: 100px 40px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav--open {
        opacity: 1;
        pointer-events: all;
    }

    .nav__link {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    .services__grid,
    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .hero__stats {
        flex-wrap: wrap;
    }

    .hero__stat-divider {
        display: none;
    }
}