/* ==========================================
   FNL — единый стиль сайта fnl.pw
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-bg: #122E47;
    --color-white: #ffffff;
    --color-accent-blue: #2D98DA;
    --color-calc: #006a94;
    --color-support: rgba(76, 80, 32, 1);
    --font-family: 'Montserrat', sans-serif;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --radius-round: 100vmax;
    --radius-btn: 8px;
    --logo-border: 4px solid var(--color-white);
}

/* --- Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    background: var(--color-bg);
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* --- Layout --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Typography --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Main Block --- */
.main-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 72px;
    padding-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.main-block__logo {
    margin: 0 auto 40px;
    border-radius: 50%;
    border: var(--logo-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-block__logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.main-block__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-block__title {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    margin-bottom: 18px;
    line-height: 1.3;
}

.main-block__subtitle {
    opacity: 0.7;
    margin-bottom: 40px;
    line-height: 1.5;
}

/* --- Buttons Row --- */
.main-block__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
    width: 100%;
    max-width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-round);
    font-family: var(--font-family);
    font-weight: var(--font-weight-bold);
    font-size: 16px;
    color: var(--color-white);
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
    line-height: 1.4;
    text-decoration: none;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn--blue {
    background-color: var(--color-accent-blue);
}

.btn--teal {
    background-color: var(--color-calc);
}

.btn--olive {
    background-color: var(--color-support);
}

/* --- Footer Navigation --- */
.footer-nav {
    text-align: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.footer-nav__links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px 28px;
    margin-bottom: 0;
    list-style: none;
}

.footer-nav__link {
    font-size: 16px;
    opacity: 0.85;
    transition: opacity 0.2s;
    line-height: 1.5;
}

.footer-nav__link:hover {
    opacity: 1;
}

/* --- Brand Footer --- */
.brand-footer {
    text-align: center;
    padding-bottom: 36px;
}

.brand-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.brand-footer__link:hover {
    opacity: 1;
}

.brand-footer__link b {
    font-weight: var(--font-weight-bold);
}

.brand-footer__logo {
    height: 14px;
    width: auto;
    vertical-align: middle;
}

/* ==========================================
   Responsive — размеры шрифтов и логотипа
   ========================================== */

/* Mobile (≤639px) */
@media screen and (max-width: 639px) {
    .main-block__logo {
        width: 128px;
        height: 128px;
    }

    .main-block__title {
        font-size: 24px;
    }

    .main-block__subtitle {
        font-size: 16px;
    }

    .btn {
        max-width: 100%;
    }

    .main-block__buttons {
        width: 100%;
    }
}

/* Tablet (640–959px) */
@media screen and (min-width: 640px) and (max-width: 959px) {
    .main-block__logo {
        width: 128px;
        height: 128px;
    }

    .main-block__title {
        font-size: 28px;
    }

    .main-block__subtitle {
        font-size: 18px;
    }

    .btn {
        min-width: 400px;
        max-width: 100%;
    }
}

/* Desktop (960–1359px) */
@media screen and (min-width: 960px) and (max-width: 1359px) {
    .main-block__logo {
        width: 168px;
        height: 168px;
    }

    .main-block__title {
        font-size: 28px;
    }

    .main-block__subtitle {
        font-size: 18px;
    }

    .btn {
        min-width: 400px;
        max-width: 100%;
    }
}

/* Large Desktop (≥1360px) */
@media screen and (min-width: 1360px) {
    .main-block__logo {
        width: 168px;
        height: 168px;
    }

    .main-block__title {
        font-size: 36px;
    }

    .main-block__subtitle {
        font-size: 20px;
    }

    .btn {
        min-width: 400px;
        max-width: 100%;
    }
}
