*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #000;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 540px) {
    body {
        font-size: 1.0625rem;
    }
}

@media (min-width: 768px) {
    body {
        font-size: 1.125rem;
    }
}

a {
    color: #000;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    text-decoration: none;
    opacity: 0.8;
}

p {
    margin: 0 0 1.3rem;
}

figure {
    margin: 0 0 1.3rem;
}

ul {
    margin: 0 0 1.3rem;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5rem;
}

img,
svg {
    vertical-align: middle;
}

blockquote {
    margin: 0 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0 0 20px;
    font-weight: 800;
    line-height: 1.3;
    color: #000;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin: 0 0 28.8px;
        line-height: 1.4;
    }
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1.25rem;
}

@media (min-width: 540px) {
    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.375rem;
    }

    h4 {
        font-size: 1.5rem;
    }
}

/* === Hero === */
header {
    position: relative;
    background-color: #7b39ee;
    overflow: hidden;
    padding: 0;
}

header .hero-wave {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
}

header .hero-wave svg {
    min-width: 1440px;
    width: 100%;
    height: auto;
}

/* Тут дописываем нужные классы просто копируя 4 строки меняя названия например на .hero-wave-green и меняя сам цвет */
header .hero-wave-red,
header .hero-wave-red svg {
    background-color: red !important;
}

/* При удалении в path SVG fill: - заработает */
header .hero-wave-red svg.path {
    fill: black !important;
}

header .hero-inner {
    position: relative;
    z-index: 10;
    max-width: 722px;
    margin: 0 auto;
    color: #fff;
    font-size: 16px;
    text-align: left;
    line-height: 1.6;
    padding: 32px 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 375px) {
    header .hero-inner {
        padding: 36px 20px;
        font-size: 17px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

@media (min-width: 540px) {
    header .hero-inner {
        padding: 60px 20px;
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    header .hero-inner {
        text-align: center;
        padding: 80px 20px;
        font-size: 20px;
    }
}

@media (min-width: 992px) {
    header .hero-inner {
        padding: 100px 20px;
    }
}

header h1 {
    margin: 0 0 24px;
    font-size: 26px;
    color: #fff;
    line-height: 1.2;
    font-weight: 700;
}

@media (min-width: 375px) {
    header h1 {
        font-size: 30px;
    }
}

@media (min-width: 540px) {
    header h1 {
        font-size: 40px;
        margin-bottom: 32px;
    }
}

@media (min-width: 768px) {
    header h1 {
        font-size: 50px;
    }
}

@media (min-width: 992px) {
    header h1 {
        margin-bottom: 40px;
        font-size: 56px;
    }
}

header p {
    color: #fff;
}

.green-btn,
header .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: #fff;
    background-color: #00bc98;
    border: 1px solid #00bc98;
    border-radius: 4px;
    padding: 14px 24px;
    min-height: 48px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    white-space: normal;
    text-align: center;
    width: 100%;
    max-width: 320px;
}


@media (min-width: 540px) {

    .green-btn,
    header .btn {
        white-space: nowrap;
        width: auto;
        max-width: none;
        padding: 14px 40px;
        font-size: 1.125rem;
        min-height: 56px;
    }
}

.green-btn:hover,
header .btn:hover {
    background-color: #00ad8c;
    border-color: #007761;
    color: #fff;
    opacity: 1;
}

.green-btn:active,
header .btn:active {
    background-color: #00a988;
    border-color: #007731;
}

.hero-cta {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

@media (min-width: 540px) {
    .hero-cta {
        margin-top: 32px;
    }
}

@media (min-width: 992px) {
    .hero-cta {
        margin-top: 40px;
    }
}

/* === Spacer === */
.spacer {
    padding-bottom: 48px;
    background-color: transparent;
}

@media (min-width: 540px) {
    .spacer {
        padding-bottom: 60px;
    }
}

@media (min-width: 768px) {
    .spacer {
        padding-bottom: 75px;
    }
}

@media (min-width: 992px) {
    .spacer {
        padding-bottom: 90px;
    }
}

/* === Article === */
main {
    padding-bottom: 48px;
}

@media (min-width: 540px) {
    main {
        padding-bottom: 60px;
    }
}

@media (min-width: 768px) {
    main {
        padding-bottom: 75px;
    }
}

@media (min-width: 992px) {
    main {
        padding-bottom: 90px;
    }
}

article {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 375px) {
    article {
        padding: 0 20px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

@media (min-width: 768px) {
    article {
        padding: 0 20px;
    }
}

.article-meta {
    font-size: 12px;
    line-height: 1.2;
    color: #646568;
    margin-bottom: 24px;
}

.article-meta a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-title {
    font-size: 24px;
    margin: 0 0 20px;
}

@media (min-width: 375px) {
    .article-title {
        font-size: 26px;
    }
}

@media (min-width: 540px) {
    .article-title {
        font-size: 32px;
        margin: 0 0 24px;
    }
}

@media (min-width: 768px) {
    .article-title {
        font-size: 36px;
    }
}

@media (min-width: 992px) {
    .article-title {
        font-size: 40px;
    }
}

article figure {
    text-align: center;
    max-width: 700px;
    margin-left: -16px;
    margin-right: -16px;
}

@media (min-width: 375px) {
    article figure {
        margin-left: 0;
        margin-right: 0;
    }
}

article figure img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 3px;
}

@media (max-width: 374px) {
    article figure img {
        border-width: 2px;
    }
}

article figure.certificate {
    margin: 0 0 1.3rem;
    line-height: 0;
}

@media (min-width: 375px) {
    article figure.certificate {
        margin-left: 0;
        margin-right: 0;
    }
}

article figure.certificate img {
    border: none;
    display: block;
    margin: 0;
    width: 100%;
}

/* === FAQ === */
dl {
    margin: 0 0 1.3rem;
}

dt {
    font-weight: 700;
    font-style: italic;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    dt {
        font-size: 1rem;
    }
}

dd {
    margin: 0 0 1.3rem;
    padding-left: 0;
}

/* === CTA Block === */
.cta-block {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px 48px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 375px) {
    .cta-block {
        padding: 0 20px 48px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

@media (min-width: 768px) {
    .cta-block {
        padding: 0 20px 75px;
    }
}

.cta-card-light-blue {
    background: #f8f9fe !important;
}

.cta-card-red {
    background: #ff5555 !important;
    box-shadow: 2px 4px 7px black;
}

.cta-card {
    background: #f8f9fe;
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
}

@media (min-width: 540px) {
    .cta-card {
        padding: 40px 32px;
    }
}

.cta-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a2e;
}

@media (min-width: 540px) {
    .cta-card h3 {
        font-size: 1.4rem;
    }
}

.cta-card .cta-subtitle {
    font-size: 0.95rem;
    color: #646568;
    margin: 0 0 28px;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .cta-buttons {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 12px;
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    min-height: 52px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

@media (min-width: 540px) {
    .cta-btn {
        padding: 14px 28px;
        font-size: 16px;
    }
}

.cta-btn:hover {
    transform: translateY(-2px);
    opacity: 1;
    color: #fff;
}

.cta-btn svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    flex-shrink: 0;
}

.cta-btn .icon-max-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cta-btn-telegram {
    background: #26A5E4;
}

.cta-btn-telegram:hover {
    box-shadow: 0 6px 20px rgba(38, 165, 228, 0.35);
}

.cta-btn-whatsapp {
    background: #25D366;
}

.cta-btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.cta-btn-max {
    background: #7b39ee;
}

.cta-btn-max:hover {
    box-shadow: 0 6px 20px rgba(123, 57, 238, 0.35);
}

/* === Video === */
.video-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 16px 48px;
    text-align: center;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 375px) {
    .video-section {
        padding: 0 20px 48px;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

@media (min-width: 540px) {
    .video-section {
        padding-bottom: 60px;
    }
}

@media (min-width: 768px) {
    .video-section {
        padding: 0 20px 75px;
    }
}

.video-section h2 {
    text-align: center;
    margin-bottom: 12px;
}

.video-section p {
    color: #646568;
    margin-bottom: 24px;
}

.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.video-wrap iframe,
.video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-download {
    display: inline-block;
    font-style: italic;
    margin-bottom: 32px;
}

/* === Blue Quote Box === */
blockquote {
    background-color: #f1f6fa;
    border: 1px solid #178eea;
    padding: 0.875rem;
    line-height: 1.5;
    border-radius: 0;
}

@media (min-width: 540px) {
    blockquote {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    blockquote {
        padding: 1.75rem;
        line-height: 2;
    }
}

blockquote p {
    margin-bottom: 0;
}

/* === Top Bar === */
.top-bar-wrap {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
}

.top-bar {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 16px;
}

@media (min-width: 375px) {
    .top-bar {
        padding: 12px 20px;
    }
}

@media (min-width: 768px) {
    .top-bar {
        padding: 14px 20px;
        flex-wrap: nowrap;
        gap: 20px;
    }
}

.top-bar .logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    padding: 0;
    border-radius: 0;
    min-width: 0;
    flex-shrink: 0;
    text-decoration: none;
}

.top-bar .logo:hover {
    opacity: 0.8;
    text-decoration: none;
}

.top-bar .logo img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

@media (min-width: 375px) {
    .top-bar .logo img {
        width: 46px;
        height: 46px;
    }

    .top-bar .logo {
        gap: 10px;
    }
}

@media (min-width: 540px) {
    .top-bar .logo img {
        width: 52px;
        height: 52px;
    }
}

@media (min-width: 768px) {
    .top-bar .logo img {
        width: 56px;
        height: 56px;
    }

    .top-bar .logo {
        gap: 12px;
    }
}

@media (min-width: 992px) {
    .top-bar .logo img {
        width: 60px;
        height: 60px;
    }
}

.logo-text {
    font-family: sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #333;
    line-height: 1.3;
    white-space: nowrap;
}

.logo-text span {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: #333;
}

@media (min-width: 375px) {
    .logo-text {
        font-size: 15px;
    }

    .logo-text span {
        font-size: 15px;
    }
}

@media (min-width: 540px) {
    .logo-text {
        font-size: 16px;
    }

    .logo-text span {
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 17px;
    }

    .logo-text span {
        font-size: 17px;
    }
}

@media (min-width: 992px) {
    .logo-text {
        font-size: 18px;
    }

    .logo-text span {
        font-size: 18px;
    }
}

/* Hamburger button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    border: none;
    background: none;
    border-radius: 6px;
    transition: background-color 0.2s;
    flex-shrink: 0;
    margin-left: auto;
}

.hamburger:hover {
    background-color: rgba(123, 57, 238, 0.07);
}

.hamburger i {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active i:nth-child(2) {
    opacity: 0;
}

.hamburger.active i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

/* Nav menu */
.top-bar-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 12px 0 6px;
    margin-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.top-bar-nav.open {
    display: flex;
}

@media (min-width: 768px) {
    .top-bar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: auto;
        padding: 0;
        margin-top: 0;
        border-top: none;
        margin-left: auto;
    }
}

@media (min-width: 992px) {
    .top-bar-nav {
        gap: 16px;
    }
}

.top-bar-nav a {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s;
    display: block;
}

@media (min-width: 768px) {
    .top-bar-nav a {
        font-size: 14px;
        padding: 6px 12px;
        display: inline-block;
    }
}

@media (min-width: 992px) {
    .top-bar-nav a {
        font-size: 15px;
    }
}

.top-bar-nav a:hover,
.top-bar-nav .nav-dropdown>span:hover {
    color: #7b39ee;
    background-color: rgba(123, 57, 238, 0.07);
    opacity: 1;
}

/* Dropdown «Написать нам» */
.nav-dropdown {
    position: relative;
}

.nav-dropdown>span {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (min-width: 768px) {
    .nav-dropdown>span {
        font-size: 14px;
        padding: 6px 12px;
        display: inline-flex;
    }
}

@media (min-width: 992px) {
    .nav-dropdown>span {
        font-size: 15px;
    }
}

.nav-dropdown>span::after {
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s;
}

.nav-dropdown:hover>span::after {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0 4px 20px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: flex;
}

@media (min-width: 768px) {
    .nav-dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        margin-top: 6px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        padding: 8px;
        min-width: 180px;
        display: none;
    }
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    transition: background-color 0.15s;
}

.nav-dropdown-menu a:hover {
    background-color: #f5f0ff;
    opacity: 1;
}

.nav-dropdown-menu a svg,
.nav-dropdown-menu a img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-dropdown-menu .icon-telegram {
    fill: #26A5E4;
}

.nav-dropdown-menu .icon-whatsapp {
    fill: #25D366;
}

.nav-dropdown-menu .icon-max-img {
    border-radius: 50%;
    object-fit: cover;
}


/* === Footer === */
footer {
    background-color: #1a1a2e;
    color: #b0b0c0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 16px 0;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

@media (min-width: 375px) {
    .footer-inner {
        padding: 40px 20px 0;
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

@media (min-width: 768px) {
    .footer-inner {
        padding: 48px 20px 0;
    }
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 600px) {
    .footer-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-info h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.footer-info p {
    margin: 0 0 6px;
    color: #fff;
    font-size: 14px;
}

.footer-info a {
    color: #fff;
}

.footer-info a:hover {
    color: #fff;
}

.footer-contacts-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

@media (min-width: 600px) {
    .footer-contacts-block {
        align-items: flex-end;
    }
}

.footer-contacts-block span {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.footer-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.2s ease-in-out;
}

.footer-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease-in-out;
}

.footer-icons a:hover {
    background-color: rgba(255, 255, 255, 0.18);
    opacity: 1;
}

.footer-icons svg {
    width: 24px;
    height: 24px;
}

.footer-icons .icon-telegram,
.header-icons .icon-telegram {
    fill: #26A5E4;
}

.footer-icons .icon-whatsapp,
.header-icons .icon-whatsapp {
    fill: #25D366;
}

.footer-icons .icon-max-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-copy {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #fff;
}