/* zerodebt.ru — ООО «Правовой Подход» */

:root {
    --bg: #272727;
    --bg-alt: #2b2b2b;
    --panel: #323232;
    --text: #d0d0d0;
    --white: #fff;
    --accent: #d69e72;
    --btn: #796650;
    --line: rgba(255, 255, 255, .06);
    --font-head: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Montserrat', Arial, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 300 16px/1.7 var(--font-body);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .2s;
}

a:hover,
a:focus {
    color: var(--white);
}

p {
    margin: 0 0 1em;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary {
    color: var(--accent);
}

/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(39, 39, 39, .97);
    border-bottom: 1px solid var(--line);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 44px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 8px 0;
    color: var(--white);
    font: 400 14px/1.4 var(--font-head);
    letter-spacing: .3em;
    text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 12px 10px;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 0 0 6px;
    background: var(--white);
}

.nav-toggle span:last-child {
    margin: 0;
}

/* Hero */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 110px 0 70px;
    overflow: hidden;
    text-align: center;
    background: var(--bg);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url(../img/slider/3.jpg) center / cover no-repeat;
    animation: hero-zoom 26s ease-out both;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(39, 39, 39, .66), rgba(39, 39, 39, .78) 65%, var(--bg));
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero .container > * {
    animation: fade-up .9s cubic-bezier(.2, .6, .2, 1) both;
}

.hero .container > :nth-child(1) { animation-delay: .15s; }
.hero .container > :nth-child(2) { animation-delay: .35s; }
.hero .container > :nth-child(3) { animation-delay: .55s; }
.hero .container > :nth-child(4) { animation-delay: .7s; }
.hero .container > :nth-child(5) { animation-delay: .9s; }
.hero .container > :nth-child(6) { animation-delay: 1.05s; }

@keyframes hero-zoom {
    from { transform: scale(1.12); }
    to { transform: scale(1); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

.hero-logo {
    display: block;
    width: 560px;
    margin: 0 auto 44px;
    /* исходник логотипа чёрный — на тёмном фоне делаем белым */
    filter: brightness(0) invert(1);
}

.hero-title {
    margin: 0 0 30px;
    color: var(--white);
    font: 400 44px/1.3 var(--font-head);
    letter-spacing: .3em;
    text-transform: uppercase;
}

.hero-questions {
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    color: var(--white);
    font-size: 18px;
    line-height: 1.75;
}

.hero-lead {
    max-width: 960px;
    margin: 0 auto 40px;
    color: var(--white);
    font-size: 18px;
}

.btn {
    display: inline-block;
    padding: 24px 46px;
    background: linear-gradient(var(--accent), var(--accent)) left / 0 100% no-repeat var(--btn);
    color: var(--white);
    font: 600 18px/1.4 var(--font-body);
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: background-size .45s cubic-bezier(.2, .6, .2, 1), box-shadow .45s;
}

.btn:hover,
.btn:focus {
    background-size: 100% 100%;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
    color: var(--white);
}

.contact-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
    margin: 36px 0 0;
    font-size: 22px;
    font-weight: 400;
}

.contact-line img {
    display: block;
    width: 26px;
    height: 26px;
}

.contact-line .messengers {
    display: flex;
    gap: 16px;
}

.contact-line .messengers a {
    opacity: .9;
}

.contact-line .messengers a:hover {
    opacity: 1;
}

/* Sections */

.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    margin: 0 0 70px;
    color: var(--white);
    font: 400 44px/1.3 var(--font-head);
    letter-spacing: .3em;
    text-align: center;
    text-transform: uppercase;
}

.grid {
    display: grid;
    gap: 50px 40px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.card img {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 0 24px;
}

.card h3 {
    margin: 0 0 16px;
    color: var(--white);
    font: 400 20px/1.4 var(--font-head);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.card p:last-child {
    margin: 0;
}

.case {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 26px;
    align-items: start;
}

.case img {
    width: 60px;
    height: 60px;
}

.case p {
    margin: 0;
}

.numbered h3 {
    margin: 0 0 12px;
    color: var(--accent);
    font: 300 44px/1.2 var(--font-head);
    letter-spacing: .1em;
}

/* Experience */

.experience {
    text-align: center;
}

.experience-number {
    display: inline-block;
    font: 700 260px/1 var(--font-head);
    color: var(--accent);
    background: url(../img/bg/text-1.jpg) center / cover;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.experience-info {
    margin: 0 0 30px;
    color: var(--accent);
    font: 400 26px/1.4 var(--font-head);
    letter-spacing: .3em;
    text-transform: uppercase;
}

.experience p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 18px;
}

/* Contacts */

.contacts {
    text-align: center;
}

.contacts .contact-line {
    margin: 0 0 60px;
    font-size: 26px;
}

.requisites {
    margin: 0 auto 50px;
    font-style: normal;
}

.requisites h3,
.documents h3 {
    margin: 0 0 14px;
    color: var(--white);
    font: 400 18px/1.4 var(--font-head);
    letter-spacing: .3em;
    text-transform: uppercase;
}

.requisites strong {
    color: var(--white);
    font-weight: 600;
}

.documents ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.documents li {
    margin: 0 0 6px;
}

.documents a {
    border-bottom: 1px solid rgba(214, 158, 114, .4);
}

.documents a:hover,
.documents a:focus {
    border-color: var(--white);
}

/* Footer */

.footer {
    padding: 30px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
    text-align: center;
}

.footer strong {
    color: var(--white);
    font-weight: 600;
}

/* Responsive */

@media (max-width: 991px) {
    .section {
        padding: 70px 0;
    }

    .section-title,
    .hero-title {
        font-size: 32px;
        letter-spacing: .2em;
    }

    .section-title {
        margin-bottom: 50px;
    }

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

    .nav-menu {
        gap: 6px 26px;
    }

    .nav-menu a {
        font-size: 13px;
        letter-spacing: .2em;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .navbar .container {
        flex-wrap: wrap;
        min-height: 50px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 6px 0 16px;
        text-align: center;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 0;
        font-size: 14px;
    }

    .hero {
        padding: 90px 0 50px;
    }

    .hero-logo {
        margin-bottom: 30px;
    }

    .section-title,
    .hero-title {
        font-size: 24px;
        letter-spacing: .14em;
    }

    .hero-questions,
    .hero-lead,
    .experience p {
        font-size: 15px;
    }

    .btn {
        padding: 18px 20px;
        font-size: 14px;
        letter-spacing: .12em;
    }

    .contact-line,
    .contacts .contact-line {
        font-size: 20px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .case {
        grid-template-columns: 44px 1fr;
        gap: 18px;
    }

    .case img {
        width: 44px;
        height: 44px;
    }

    .experience-number {
        font-size: 180px;
    }

    .experience-info {
        font-size: 20px;
        letter-spacing: .2em;
    }
}

/* Motion */

.scroll-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

.navbar {
    transition: background-color .4s, border-color .4s;
}

.nav-menu a {
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: .3em;
    bottom: 2px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .35s cubic-bezier(.2, .6, .2, 1);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.nav-menu a.active {
    color: var(--accent);
}

.section-title::after {
    content: '';
    display: block;
    width: 64px;
    height: 1px;
    margin: 26px auto 0;
    background: var(--accent);
}

.js .section-title::after {
    transform: scaleX(0);
    transition: transform .9s cubic-bezier(.2, .6, .2, 1) .35s;
}

.js .section-title.is-visible::after {
    transform: scaleX(1);
}

.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .8s cubic-bezier(.2, .6, .2, 1), transform .8s cubic-bezier(.2, .6, .2, 1);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.card img,
.case img {
    transition: transform .4s cubic-bezier(.2, .6, .2, 1);
}

.card h3 {
    transition: color .3s;
}

.card:hover img,
.case:hover img {
    transform: translateY(-6px);
}

.card:hover h3 {
    color: var(--accent);
}

.case {
    position: relative;
    padding-bottom: 28px;
}

.case::after,
.numbered > div::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(var(--accent), var(--accent)) left / 0 100% no-repeat var(--line);
    transition: background-size .6s cubic-bezier(.2, .6, .2, 1);
}

.case:hover::after,
.numbered > div:hover::after {
    background-size: 100% 100%;
}

.numbered > div {
    position: relative;
    padding-bottom: 24px;
}

.numbered h3 {
    transition: letter-spacing .4s cubic-bezier(.2, .6, .2, 1);
}

.numbered > div:hover h3 {
    letter-spacing: .22em;
}

.contact-line .messengers a {
    transition: opacity .2s, transform .3s cubic-bezier(.2, .6, .2, 1);
}

.contact-line .messengers a:hover {
    transform: translateY(-3px);
}

.documents a {
    transition: color .2s, border-color .2s;
}

@media (min-width: 768px) {
    .js .navbar:not(.scrolled) {
        background-color: transparent;
        border-color: transparent;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .js .section-title::after {
        transform: none;
    }
}
