/* ==========================================
   ОСНОВНИ НАСТРОЙКИ
   ========================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222222;
    background-color: #f5f5f5;
}

a {
    transition:
        color 0.2s,
        background-color 0.2s,
        border-color 0.2s,
        box-shadow 0.2s;
}


/* ==========================================
   HEADER
   ========================================== */

header {
    width: 100%;
    padding: 7px 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}


/* ==========================================
   ЛОГО И ИМЕ
   ========================================== */

.brand {
    display: flex;
    align-items: center;
    gap: 7px;
}

.logo-link {
    display: block;
}

.logo {
    display: block;
    width: 72px;
    height: auto;
}

.brand-name {
    color: #333D7F;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}


/* ==========================================
   МЕНЮ
   ========================================== */

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    color: #222222;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}

nav a:hover,
nav a.active {
    color: #CD333A;
}


/* ==========================================
   БУТОНИ
   ========================================== */

.button,
.submit-button {
    display: inline-block;

    padding: 12px 23px;

    color: #ffffff;
    background-color: #333D7F;

    border: none;
    border-radius: 5px;

    font-weight: bold;
    text-decoration: none;

    cursor: pointer;
}

.button:hover,
.submit-button:hover {
    background-color: #CD333A;
}


/* ==========================================
   НАЧАЛНА СТРАНИЦА - HERO
   ========================================== */

.hero {
    padding: 22px 40px;

    background-color: #f7f8fb;
}

.hero-content {
    width: 100%;
    max-width: 1120px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 45px;

    align-items: center;
}


/* ==========================================
   HERO - ТЕКСТ
   ========================================== */

.hero-text {
    text-align: left;
}

.hero h1 {
    max-width: 500px;

    margin: 0 0 19px;

    color: #333D7F;

    font-size: 29px;
    font-style: italic;
    font-weight: 600;

    line-height: 1.32;
}


/* ==========================================
   HERO - СНИМКА
   ========================================== */

.hero-image {
    width: 100%;
    height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 280px;

    border-radius: 9px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.11);
}


/* ==========================================
   НАЧАЛНА СТРАНИЦА - НАШИТЕ УСЛУГИ
   ========================================== */

.home-services {
    padding: 28px 40px 36px;

    background-color: #ffffff;
}

.home-services h2 {
    margin: 0 0 21px;

    color: #333D7F;

    font-size: 28px;
    text-align: center;
}

.home-service-grid {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.home-service-card {
    padding: 20px 22px;

    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;
}

.home-service-card h3 {
    margin: 0 0 11px;

    color: #333D7F;

    font-size: 19px;
    line-height: 1.35;
}

.home-service-card p {
    margin: 0 0 12px;

    color: #444444;

    font-size: 15.5px;
    line-height: 1.55;
}


/* ==========================================
   ЛИНКОВЕ
   ========================================== */

.service-link,
.back-link {
    display: inline-block;

    margin-top: 4px;

    color: #333D7F;

    font-weight: bold;
    text-decoration: none;
}

.service-link:hover,
.back-link:hover {
    color: #CD333A;
}


/* ==========================================
   ПРЕДСТАВЯНЕ НА ВЕРИТАС-Д
   ========================================== */

.home-about-seo {
    width: calc(100% - 80px);
    max-width: 900px;

    margin: 35px auto 50px;

    padding: 34px 48px;

    background-color: #ffffff;

    border: 1px solid #e1e1e1;
    border-radius: 9px;

    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
}

.home-about-seo h2 {
    margin: 0 0 20px;

    color: #333D7F;

    font-size: 25px;
    line-height: 1.35;

    text-align: center;
}

.home-about-seo p {
    margin: 0 0 16px;

    color: #444444;

    font-size: 16px;
    line-height: 1.75;

    text-align: justify;
}

.home-about-seo .service-link {
    margin-top: 5px;
}


/* ==========================================
   СТРАНИЦА "УСЛУГИ"
   ========================================== */

.services-page {
    max-width: 1050px;

    margin: 0 auto;

    padding: 35px 40px 60px;
}

.services-intro {
    margin-bottom: 28px;
}

.services-intro h1 {
    margin: 0 0 15px;

    color: #333D7F;

    font-size: 28px;
}

.services-intro p {
    max-width: 850px;

    margin-top: 0;

    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================
   КАТЕГОРИИ В "УСЛУГИ"
   ========================================== */

.services-page > #services-overview > h2 {
    color: #333D7F;

    font-size: 23px;
    line-height: 1.3;
}


/* ==========================================
   КАРТИ НА УСЛУГИТЕ
   ========================================== */

.services-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.service-menu-card {
    min-height: 170px;

    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    color: #222222;
    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;

    text-decoration: none;
}

.service-menu-card strong {
    display: block;

    margin-bottom: 10px;

    color: #333D7F;

    font-size: 18px;
    line-height: 1.35;
}

.service-menu-card p {
    flex-grow: 1;

    margin: 0 0 12px;

    color: #444444;

    font-size: 15px;
    line-height: 1.5;
}

.service-menu-card span {
    color: #333D7F;
    font-weight: bold;
}

.service-menu-card:hover {
    border-color: #333D7F;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.service-menu-card:hover span {
    color: #CD333A;
}


/* ==========================================
   ПОДРОБНИ ОПИСАНИЯ НА УСЛУГИТЕ
   ========================================== */

#back-to-services {
    margin-bottom: 22px;
}

.service-detail {
    margin-bottom: 24px;

    padding: 30px;

    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;
}

.service-detail h2 {
    margin: 0 0 18px;

    color: #333D7F;

    font-size: 24px;
}

.service-detail h3 {
    color: #333D7F;

    font-size: 18px;
}

.service-detail p,
.service-detail li {
    font-size: 16px;
    line-height: 1.7;
}

.service-detail p {
    margin-top: 0;
    margin-bottom: 16px;
}

.service-detail li {
    margin-bottom: 5px;
}

.service-contact {
    margin-top: 25px;

    text-align: center;
}


/* ==========================================
   ЛЕГАЛИЗАЦИЯ
   ========================================== */

.legalization-top {
    margin-bottom: 25px;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    gap: 35px;

    align-items: center;
}

.legalization-image img {
    display: block;

    width: 100%;
    height: 270px;

    object-fit: cover;

    border-radius: 9px;

    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10);
}


/* ==========================================
   СТРАНИЦА "ЗА НАС"
   ========================================== */

.about-page {
    max-width: 1050px;

    margin: 0 auto;

    padding: 38px 40px 60px;
}

.about-top {
    margin-bottom: 32px;

    display: grid;
    grid-template-columns: 1.15fr 0.85fr;

    gap: 38px;

    align-items: center;
}

.about-top-text p,
.about-text p {
    margin-top: 0;
    margin-bottom: 17px;

    font-size: 16px;
    line-height: 1.72;

    text-align: justify;
}

.about-image img {
    display: block;

    width: 100%;
    height: 290px;

    object-fit: cover;

    border-radius: 10px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
}

.about-page a {
    color: #333D7F;

    text-decoration: none;
}

.about-page a:hover {
    color: #CD333A;
}


/* ==========================================
   КОНТАКТИ В "ЗА НАС"
   ========================================== */

.about-contact {
    margin-top: 30px;

    padding: 22px;

    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;
}

.about-contact p {
    margin: 7px 0;
}

.about-contact .contact-title {
    margin-bottom: 12px;
}

.about-contact a {
    color: #333D7F;

    font-weight: bold;
    text-decoration: none;
}

.about-contact a:hover {
    color: #CD333A;
}


/* ==========================================
   СТРАНИЦА "КОНТАКТИ"
   ========================================== */

.contact-page {
    max-width: 1000px;

    margin: 0 auto;

    padding: 35px 40px 60px;
}

.contact-intro {
    margin-bottom: 30px;
}

.contact-intro h1 {
    margin: 0 0 10px;

    color: #333D7F;

    font-size: 28px;
}

.contact-lead {
    color: #333D7F;

    font-size: 18px;
    font-style: italic;
}

.contact-intro p {
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 35px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 22px;
}

.contact-box {
    padding: 22px;

    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;
}

.contact-box h2 {
    margin-top: 0;

    color: #333D7F;

    font-size: 20px;
}

.contact-box p {
    line-height: 1.6;
}

.contact-box a {
    color: #333D7F;

    text-decoration: none;
}

.contact-box a:hover {
    color: #CD333A;
}


/* ==========================================
   КОНТАКТНА ФОРМА
   ========================================== */

.inquiry-section {
    padding: 28px;

    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;
}

.inquiry-section h2 {
    margin-top: 0;

    color: #333D7F;

    font-size: 24px;
}

.contact-form {
    max-width: 750px;

    margin-top: 26px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 6px;

    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 11px 12px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;

    background-color: #ffffff;

    border: 1px solid #cccccc;
    border-radius: 5px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;

    border-color: #333D7F;
}

.form-group input[type="file"] {
    display: block;

    margin-top: 8px;
}

.form-group small {
    display: block;

    margin-top: 7px;

    color: #666666;
}

.form-consent {
    margin: 22px 0;

    display: flex;
    align-items: flex-start;

    gap: 10px;
}

.form-consent input {
    margin-top: 4px;
}

.form-consent label {
    font-size: 14px;
    line-height: 1.5;
}


/* ==========================================
   СЪОБЩЕНИЯ ОТ ФОРМАТА
   ========================================== */

.form-message {
    margin-bottom: 28px;

    padding: 18px 20px;

    border-radius: 6px;

    font-size: 16px;
    line-height: 1.6;
}

.success-message {
    background-color: #eef7ee;

    border: 1px solid #8eb98e;
}

.error-message {
    background-color: #fff1f1;

    border: 1px solid #d99a9a;
}


/* ==========================================
   СКРИТО ПОЛЕ ПРОТИВ СПАМ
   ========================================== */

.website-field {
    position: absolute;

    left: -10000px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* ==========================================
   СТРАНИЦА "ЦЕНИ"
   ========================================== */

.prices-page {
    max-width: 900px;

    margin: 0 auto;

    padding: 35px 40px 60px;
}

.prices-intro {
    padding: 28px;

    background-color: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;
}

.prices-intro h1 {
    margin-top: 0;

    color: #333D7F;

    font-size: 28px;
}

.prices-intro p {
    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================
   ТАБЛЕТ
   ========================================== */

@media (max-width: 900px) {

    header {
        padding: 12px 20px;

        flex-direction: column;

        gap: 10px;
    }

    .brand {
        justify-content: center;
    }

    .brand-name {
        white-space: normal;

        text-align: center;
    }

    nav {
        justify-content: center;

        flex-wrap: wrap;

        gap: 15px;
    }


    /* HOME */

    .hero {
        padding: 26px 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .hero-text {
        text-align: center;
    }

    .hero h1 {
        max-width: 700px;

        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        width: 100%;
        height: 270px;

        margin: 0 auto;
    }

    .hero-image img {
        width: auto;
        height: auto;

        max-width: 100%;
        max-height: 270px;
    }

    .home-service-grid {
        grid-template-columns: 1fr;
    }


    /* SERVICES */

    .services-menu {
        grid-template-columns: repeat(2, 1fr);
    }

    .legalization-top {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .legalization-image {
        max-width: 650px;

        margin: 0 auto;
    }


    /* ABOUT */

    .about-top {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .about-image {
        max-width: 650px;

        margin: 0 auto;
    }
}


/* ==========================================
   ТЕЛЕФОН
   ========================================== */

@media (max-width: 650px) {

    /* HEADER */

    header {
        padding: 9px 15px;

        gap: 8px;
    }

    .brand {
        gap: 4px;
    }

    .logo {
        width: 62px;
    }

    .brand-name {
        font-size: 16px;

        line-height: 1.25;
    }

    nav {
        gap: 12px;
    }

    nav a {
        font-size: 14px;
    }


    /* HERO */

    .hero {
        padding: 22px 20px;
    }

    .hero-content {
        gap: 20px;
    }

    .hero h1 {
        margin-bottom: 17px;

        font-size: 24px;

        line-height: 1.32;
    }

    .hero-image {
        width: 100%;
        height: auto;
    }

    .hero-image img {
        display: block;

        width: auto;
        height: auto;

        max-width: 100%;
        max-height: 230px;

        margin: 0 auto;
    }


    /* HOME SERVICES */

    .home-services {
        padding: 28px 20px 35px;
    }

    .home-services h2 {
        margin-bottom: 20px;

        font-size: 25px;
    }

    .home-service-card {
        padding: 19px;
    }


    /* ПРЕДСТАВЯНЕ */

    .home-about-seo {
        width: auto;

        margin: 30px 20px 40px;

        padding: 27px 22px;
    }

    .home-about-seo h2 {
        margin-bottom: 18px;

        font-size: 21px;
    }

    .home-about-seo p {
        font-size: 15.5px;

        line-height: 1.65;

        text-align: left;
    }


    /* SERVICES */

    .services-page {
        padding: 28px 20px 45px;
    }

    .services-menu {
        grid-template-columns: 1fr;
    }

    .service-menu-card {
        min-height: auto;
    }

    .service-detail {
        padding: 21px;
    }

    .legalization-image img {
        height: 220px;
    }


    /* ABOUT */

    .about-page {
        padding: 28px 20px 45px;
    }

    .about-image img {
        height: 220px;
    }

    .about-top-text p,
    .about-text p {
        line-height: 1.65;
    }


    /* CONTACT */

    .contact-page {
        padding: 28px 20px 45px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .inquiry-section {
        padding: 21px;
    }


    /* PRICES */

    .prices-page {
        padding: 28px 20px 45px;
    }

    .prices-intro {
        padding: 21px;
    }
}

.about-top > div:first-child p {
    text-align: justify;
}