:root {
    --primary: #204653;
    --accent: #e49614;
    --muted: #8b8b8b;
    --text: #0f1c22;
    --bg: #f5f6f7;
    --card: #ffffff;
    --soft: #ebeced;
}

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

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

p {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.01em;
}

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

.page .container,
.page .row {
    --bs-gutter-x: 32px;
}

.page .container {
    margin: 0 auto;
    color: #000;
}

.container.hero-content {
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.header-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 80px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), #1a3641);
    position: relative;
}

.brand-mark::after,
.brand-mark::before {
    content: '';
    position: absolute;
    background: var(--accent);
    border-radius: 12px;
}

.brand-mark::before {
    width: 8px;
    height: 20px;
    left: 10px;
    top: 9px;
}

.brand-mark::after {
    width: 8px;
    height: 14px;
    right: 10px;
    top: 12px;
}

.brand-mark.large {
    width: 56px;
    height: 56px;
}

.brand-name {
    font-size: 18px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 500;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #000;
}

.main-nav a:hover {
    background: var(--soft);
}

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

.header-phone {
    font-weight: 700;
    color: var(--primary);
}

.ghost-button {
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--soft);
    border: 1px solid var(--soft);
    font-weight: 600;
}

.ghost-button:hover {
    border-color: #d0d3d8;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--soft);
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: var(--primary);
    border-radius: 8px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 4px;
    border: none;
    background: #7D848C;

    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
}

.primary-button:hover {
    background: var(--primary);
}

.primary-button.light {
    background: #fff;
    color: var(--primary);
}

.primary-button.dark {
    background: var(--primary);
}

.primary-button.small {
    padding: 10px 14px;
    font-size: 14px;
}

.ghost-button.small {
    padding: 10px 14px;
    font-size: 14px;
}

.hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    background: #0e1114;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(16, 28, 34, 0.92) 0%, rgba(16, 28, 34, 0.85) 35%, rgba(16, 28, 34, 0.6) 55%, rgba(16, 28, 34, 0.25) 70%),
    url('hero.jpg') center/cover no-repeat;
    background-image: url(../img/hero-ban.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: brightness(0.95);
}

.hero-content {
    position: relative;
    color: #fff;
    max-width: 80%;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    height: 450px;
}

.eyebrow {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 32px;
    align-items: start;
}

.hero h1 {
    font-family: 'Tenor Sans', 'Manrope', sans-serif;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    max-width: 520px;
}

.lead {
    font-size: 18px;
    line-height: 1.6;
}

.write-tab {
    position: absolute;
    top: calc(50% + 110px);
    left: 0;
    transform: rotate(-90deg);
    transform-origin: left top;
    background: #204653;
    color: #fff;
    border: none;
    padding: 25px 50px;
    border-radius: 0 0 10px 10px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.25);
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    z-index: 999999;
    font-size: 18px;
}

.hero-socials {
    position: absolute;
    right: 18px;
    top: 28%;
    display: grid;
    gap: 10px;
    z-index: 4;
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #204653;
    color: #1f3f4c;
    display: grid;
    place-items: center;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.section-lead {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 24px;
}

.section-lead.narrow {
    max-width: 760px;
}

.contact-lead {
    font-size: 32px;
    line-height: 1.08;
    font-weight: 500;
    margin-bottom: 28px;
}

.contact-options {
    padding: 90px 0 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 14px;
    margin-top: 10px;
}

.contact-card {
    background: #e5e7e9;
    border-radius: 14px;
    padding: 20px 24px 18px;
    display: grid;
    gap: 8px;
    min-height: 120px;
    align-content: center;
    border: 1px solid #dde0e3;
}

.contact-card--lead {
    padding: 6px 22px;
    background-color: #EBECED;
}

.contact-card.span-2 {
    grid-column: span 2;
}

.contact-main {
    margin: 0;
    font-size: 28px;
    line-height: 1.32;
    font-weight: 500;
}

.contact-sub {
    margin: 0;
    font-size: 17px;
    color: #6b6f73;
}

.contact-card a {
    color: inherit;
}

.cta-card {
    background: var(--accent);
    color: #000;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-color: var(--accent);
    text-decoration: none;
}

.cta-card .contact-main {
    font-size: 24px;
    margin: 0;
}

.cta-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.card .primary-button {
    width: fit-content;
    margin-top: 4px;
}

.primary-button.slim {
    padding: 12px 14px;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0.01em;
}

.icon-dot,
.icon-mail,
.icon-phone,
.icon-chat {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff;
    display: grid;
    place-items: center;
    border: 1px solid #dde0e4;
}

.icon-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.icon-mail::after {
    content: '';
    width: 18px;
    height: 12px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 -4px 0 rgba(32, 70, 83, 0.08);
}

.icon-phone::after {
    content: '';
    width: 12px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.icon-chat::after {
    content: '';
    width: 18px;
    height: 14px;
    border: 2px solid #000;
    border-radius: 5px;
    position: relative;
}

.service-section {
    margin: 0 16px;
    padding: 64px 0;
    background: #fff;
}

.service-wrapper {
    max-width: 1360px;
    margin: 0 auto;
    background: #e7e8ea;
    border-radius: 14px;
}

.service-wrapper .container {
    padding: 50px 22px 50px;
}

.service-section h2 {
    margin: 0 0 40px;
    font-size: 28px;
    font-weight: 400;
}

.service-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
    "info perform"
    "info acquaint"
    "self self2";
    grid-template-rows: repeat(2, minmax(0, 1fr)) auto;
    gap: 16px 18px;
    align-items: start;
}

.service-card {
    border: 1px solid #e2e4e6;
    border-radius: 13px;
    padding: 30px;
    height: 100%;
    background: #fff !important;
}

.card-info {
    grid-area: info;
}

.card-perform {
    grid-area: perform;
}

.card-acquaint {
    grid-area: acquaint;
}

.card-self {
    background: #f9f9f9;
}

.service-card:nth-last-child(2) {
    grid-area: self;
}

.service-card:last-child {
    grid-area: self2;
}

.service-card h3 {
    margin: 0 0 15px;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.service-card ul {
    margin: 0;
    padding-left: 18px;
}

.service-card li {
    font-size: 20px;
    line-height: 30px;
    color: #626262;
}

.service-card li + li {
    margin-top: 8px;
}

.service-spacer {
    display: none;
}


.highlight {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 400;
}

.highlight:hover {
    color: #c27a0e;
}

.appeal-section {
    margin: 0 16px;
    color: #fff;
}

.appeal-panel {
    max-width: 1360px;
    margin: 0 auto;
    background: #204653;
    border-radius: 13px;
    padding: 50px 45px 60px;
    color: #fff;
}

.appeal-content {
    display: grid;
    gap: 16px;
}

.appeal-content h2 {
    font-size: 36px;
    font-weight: 500;
    margin: 0;
    color: #fff;
}

.appeal-text {
    margin-bottom: 0;
    font-size: 18px;
    line-height: 1.5;
    max-width: 1100px;
    color: #fff;
}

.appeal-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 24px 26px 20px;
}

.appeal-label {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.7);
}

.appeal-address {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 400;
    color: #fff;
}

.appeal-address.email {
    font-size: 20px;
    font-weight: 400;
}

.appeal-address a {
    color: var(--accent);
}

.appeal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.download-hint svg {
    min-width: 23px;
    width: 23px;
    height: 28px;
}

@media (max-width: 833px) {
    .appeal-panel {
        padding: 20px 14px;
    }

    .appeal-content h2 {
        font-size: 16px;
    }

    .appeal-text {
        font-size: 14px;
        line-height: 24px;
    }
}

.ghost-button.outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: #fff;
}

.ghost-button.outline span {
    font-size: 14px;
}

.appeal-subtitle {
    margin: 6px 0 0;
    font-size: 24px;
    font-weight: 400;
    color: #fff;
}

.download-btn {
    height: 45px;
    padding: 0 16px;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 1.1;
    border-radius: 5px;
    background: #fff;
    color: #1f3f4c;
    border: 1px solid #d5dadd;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid #d5dadd;
    border-radius: 4px;
    font-size: 14px;
    color: #1f3f4c;
}

.fine-print {
    color: var(--muted);
    font-size: 14px;
}

.telegram-card {
    background: #fff;
    border-radius: 13px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: grid;
    gap: 10px;
}

.faq {
    padding: 70px 0 40px;
}

.faq h2 {
    margin-bottom: 22px;
}

.faq-list {
    display: grid;
    gap: 10px;
}

details {
    background: var(--soft);
    border-radius: 13px;
    padding: 16px 18px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

details[open] {
    border-color: #EBECED;
}

summary {
    list-style: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    position: relative;
    padding-right: 24px;
    text-transform: uppercase;
}

summary::-webkit-details-marker {
    display: none;
}

/* summary::after {
  content: '›';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  transform: rotate(90deg);
  color: var(--primary);
  transition: transform 0.2s ease;
} */
summary::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 31px;
    height: 31px;
    background-image: url("data:image/svg+xml,%3Csvg width='31' height='31' viewBox='0 0 31 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='15.5' cy='15.5' r='15.5' fill='%23fff'%3E%3C/circle%3E%3Cpath d='M12.7178 22L12 21.2573L17.5644 15.5L12 9.74269L12.7178 9L19 15.5L12.7178 22Z' fill='%23204653'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

details[open] summary::after {
    transform: rotate(-90deg);
}

.faq-body {
    margin-top: 12px;
    font-size: 20px;
    line-height: 30px;
    color: rgba(0,0,0,0.5);
}

.faq-body ul {
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 6px;
}

.contact-form-section {
    max-width: 1360px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: 13px;
    padding: 50px 45px 60px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.7fr;
    gap: 24px;
    align-items: stretch;
}

.contact-form {
    border-radius: 13px;
    display: grid;
    gap: 12px;
}

.contact-form label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cdd1d6;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
}

.contact-form textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.contact-form .primary-button {
    width: 100%;
}

.side-visual {
    border-radius: 13px;
    background: linear-gradient(180deg, #cfd4da 0%, #f3f4f6 100%);
    background-image: url(../img/form.jpg);
    background-repeat: no-repeat;
}


@media (max-width: 1024px) {
    /* .contact-card.span-2 {
      grid-column: span 1;
    } */
    .cta-card .contact-main,
    p.contact-main {
        font-size: 20px;
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .header-row {
        grid-template-columns: auto auto;
        grid-template-areas:
      "brand actions"
      "nav nav";
    }

    .service-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
      "info"
      "perform"
      "acquaint"
      "self"
      "self2";
        grid-template-rows: none;
    }

    .service-card.push-right {
        grid-column: auto;
    }

    .appeal-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        border-radius: 8px;
    }

    .appeal-box {
        grid-template-columns: 1fr;
    }

    .brand {
        grid-area: brand;
    }

    .header-actions {
        grid-area: actions;
        justify-content: flex-end;
    }

    .main-nav {
        grid-area: nav;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        display: block;
    }

    .container.hero-content {
        max-width: 75%;
    }

    .contact-options {
        padding-top: 3px;
    }
}

@media (max-width: 833px) {

    .contact-form-section {
        padding: 0;
        background-color: transparent;
    }

    .contact-form-section .form-grid {
        border-radius: 6px;
        padding: 30px 20px 15px;
        background-color: #EBECED;
    }

    .service-section {
        padding-top: 0;
    }

    .service-section .container {
        padding: 0;
    }

    .service-section .service-wrapper {
        padding: 0;
        background-color: transparent;
    }

    .service-section .service-layout {
        border-radius: 6px;
        padding: 30px 20px 15px;
        background-color: #EBECED;
    }

    .service-card {
        padding: 16px;
    }

    .service-card h3 {
        font-size: 14px;
        line-height: 26px;
    }
    .service-card li {
        font-size: 14px;
        line-height: 26px;
    }

    summary {
        font-size: 14px;
        line-height: 20px;
    }

    .faq-body {
        font-size: 14px;
        line-height: 20px;
    }

    .download-hint {
        font-size: 12px;
    }
}

@media (max-width: 820px) {
    .container {
        width: calc(100% - 32px);
    }

    .contact-grid {
        grid-template-columns: 1;
    }

    .cta-card {
        padding-right: 16px;
    }

    .write-tab,
    .hero-socials {
        display: none;
    }

    .main-nav {
        position: absolute;
        inset: 80px 16px auto 16px;
        background: #fff;
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

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

    .nav-toggle {
        display: inline-flex;
    }

    .header-row {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
    }

    .header-actions {
        gap: 8px;
    }

    .floating-contact {
        display: none;
    }

}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 20px;
    }

    .contact-card {
        grid-column: span 2;
    }

    .contact-lead {
        font-size: 24px;
    }

    .header-row {
        grid-template-columns: 1fr auto;
    }

    .header-actions .ghost-button {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
    }
}
