:root {
    --carmine: #9E3039;
    --carmine-dark: #7E2630;
    --cream: #F7F3EC;
    --sand: #DDD3C4;
    --ink: #2B1B1D;
    --ink-soft: #4A3B3D;
    --panel: #FFFFFF;
    --accent: #9E3039;
    --on-carmine: #F3DADD;
    --on-ink: #E5DCD0;
    --line-ink: #4A3B3D;
}

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

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

body {
    margin: 0;
    min-width: 320px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

iframe, embed, object {
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    max-width: 100%;
}

h1, h2, h3 {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    margin: 0;
}

p {
    margin: 0;
}

a {
    color: var(--ink);
    text-decoration: none;
}

a:focus, button:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    background: var(--cream);
    position: relative;
    z-index: 20;
}

.header-in {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.brand {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 2px;
    min-width: 0;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
}

.brand-name {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    min-width: 0;
}

.header-right {
    -webkit-box-ordinal-group: 4;
    -ms-flex-order: 3;
    order: 3;
    margin-left: auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    padding-left: 8px;
}

.menu-btn {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 6px;
    background: var(--carmine);
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-right: 4px;
}

.menu-bars {
    display: block;
    width: 20px;
}

.menu-bars span {
    display: block;
    height: 2px;
    background: #FFFFFF;
    margin: 4px 0;
    -webkit-transition: -webkit-transform 0.2s ease, opacity 0.2s ease;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-bars span:nth-child(1) {
    -webkit-transform: translateY(6px) rotate(45deg);
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-bars span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-bars span:nth-child(3) {
    -webkit-transform: translateY(-6px) rotate(-45deg);
    transform: translateY(-6px) rotate(-45deg);
}

.main-nav {
    -webkit-box-ordinal-group: 5;
    -ms-flex-order: 4;
    order: 4;
    width: 100%;
    display: none;
    max-height: 100vh;
    max-height: 100svh;
    overflow-y: auto;
    padding-top: 10px;
}

.menu-open .main-nav {
    display: block;
}

.main-nav a {
    display: block;
    font-weight: 600;
    font-size: 20px;
    padding: 9px 2px;
    margin-top: 4px;
    border-top: 1px solid var(--sand);
}

.lang-bar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-left: 4px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.lang-link {
    display: block;
    padding: 2px;
    margin-left: 4px;
    border-radius: 50%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
}

.lang-link:first-child {
    margin-left: 0;
}

.lang-circle {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--panel);
    opacity: 0.62;
    -webkit-transition: opacity 0.18s ease;
    transition: opacity 0.18s ease;
}

.lang-circle img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.lang-link.on {
    cursor: default;
}

.lang-link.on .lang-circle {
    opacity: 1;
}

.lang-link:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

.hero {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.hero-text {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: 0;
    background: var(--carmine);
    color: #FFFFFF;
    padding: 48px max(1rem, env(safe-area-inset-right)) 52px max(1rem, env(safe-area-inset-left));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.hero-text-in {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
}

.kicker {
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--on-carmine);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 2rem;
    font-size: clamp(1.9rem, 1.2rem + 3vw, 4rem);
    line-height: 1.12;
    margin-bottom: 20px;
    word-wrap: break-word;
    word-break: break-word;
}

.hero-lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--on-carmine);
    max-width: 34rem;
    margin-bottom: 28px;
}

.btn-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: -10px;
}

.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    padding: 14px 26px;
    margin: 0 10px 10px 0;
    text-align: center;
    border-radius: 0;
    -webkit-transition: background-color 0.18s ease, color 0.18s ease;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.btn-white {
    background: #FFFFFF;
    color: var(--carmine);
    border: 2px solid #FFFFFF;
}

.btn-outline {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.btn-carmine {
    background: var(--carmine);
    color: #FFFFFF;
    border: 2px solid var(--carmine);
}

.hero-photo {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: 0;
    position: relative;
    height: 280px;
    background: var(--sand);
    overflow: hidden;
}

.hero-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}

.flag-band span {
    display: block;
}

.flag-band span:nth-child(1), .flag-band span:nth-child(3) {
    height: 10px;
    background: var(--carmine);
}

.flag-band span:nth-child(2) {
    height: 5px;
    background: #FFFFFF;
}

.section {
    padding-top: 64px;
    padding-top: clamp(56px, 4rem + 2vw, 104px);
    padding-bottom: 64px;
    padding-bottom: clamp(56px, 4rem + 2vw, 104px);
}

.section h2 {
    font-size: 2rem;
    font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);
    line-height: 1.15;
    margin-bottom: 32px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    grid-gap: 24px;
    gap: 24px;
}

.card {
    background: var(--panel);
    padding: 28px 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    min-width: 0;
}

.card-num {
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: 44px;
    line-height: 1;
    color: var(--carmine);
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: 44px;
    margin-right: 20px;
}

.card-body {
    min-width: 0;
}

.card h3 {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 10px;
}

.card p {
    color: var(--ink-soft);
}

.section-white {
    background: #FFFFFF;
}

.about-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.about-text {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: 0;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.about-photo {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: 0;
    position: relative;
    height: 300px;
    background: var(--sand);
    overflow: hidden;
    margin-top: 16px;
}

.about-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center 30%;
    object-position: center 30%;
}

.section-contact {
    background: var(--ink);
    color: var(--cream);
}

.contact-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.contact-info {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: 0;
    margin-bottom: 36px;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-lead {
    color: var(--on-ink);
    font-size: 18px;
    margin-bottom: 24px;
}

.contact-company {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 14px;
}

.contact-item {
    color: var(--on-ink);
    margin-bottom: 14px;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.contact-label {
    display: block;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #CFC4B6;
}

.contact-mail {
    color: var(--cream);
    padding: 2px 0;
    border-bottom: 1px solid var(--on-ink);
}

.contact-form-wrap {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    min-width: 0;
    position: relative;
}

.form-msg {
    padding: 16px 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-msg-ok {
    background: #E7F1E6;
    color: #1F4A23;
}

.form-msg-err {
    background: #F8E1E3;
    color: #7E2630;
}

.form-group {
    margin-bottom: 16px;
    min-width: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

.form-group input,
#contactForm textarea {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    border: 2px solid var(--cream);
    border-radius: 0;
    background: var(--cream);
    color: var(--ink);
    font-size: 16px;
    padding: 0 12px;
}

.form-group input {
    height: 48px;
}

.form-group input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #D98A92;
}

#contactForm textarea {
    resize: none;
    height: 150px;
    overflow-y: auto;
    padding: 12px;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

.form-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.form-row .form-group {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
}

.form-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 24px;
}

.form-actions .cf-turnstile {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 300px;
    min-height: 65px;
    line-height: 0;
    margin: 0 0 14px 0;
    -webkit-transform: scale(0.9);
    transform: scale(0.9);
    -webkit-transform-origin: center;
    transform-origin: center;
}

.form-actions .submit-btn {
    width: 100%;
    height: 52px;
    padding: 0 32px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    border-radius: 0;
    background: var(--carmine);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    -webkit-transition: background-color 0.18s ease;
    transition: background-color 0.18s ease;
}

.site-footer {
    background: var(--ink);
    color: #CFC4B6;
    font-size: 15px;
}

.footer-in {
    border-top: 1px solid var(--line-ink);
    padding-top: 22px;
    padding-bottom: 22px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
}

.not-found {
    padding-top: 96px;
    padding-bottom: 120px;
}

.not-found h1 {
    font-size: 2rem;
    font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
    margin-bottom: 28px;
}

@media (min-width: 341px) {
    .form-actions .cf-turnstile {
        -webkit-transform: none;
        transform: none;
    }
}

@media (min-width: 480px) {
    .brand-name {
        font-size: 18px;
    }
    .hero-photo {
        height: 340px;
    }
    .about-photo {
        height: 360px;
    }
}

@media (min-width: 601px) {
    .form-actions {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
    }
    .form-actions .cf-turnstile {
        margin: 0 16px 0 0;
    }
    .form-actions .submit-btn {
        width: auto;
        height: 65px;
    }
    .form-row {
        margin-right: -16px;
    }
    .form-row .form-group {
        -ms-flex: 1 1 200px;
        flex: 1 1 200px;
        margin-right: 16px;
    }
}

@media (min-width: 768px) {
    .brand-name {
        font-size: 21px;
    }
    .card {
        padding: 36px;
    }
    .card-num {
        font-size: 54px;
        min-width: 54px;
        margin-right: 24px;
    }
    .card h3 {
        font-size: 26px;
    }
}

@media (min-width: 1024px) {
    .header-in {
        padding-top: 22px;
        padding-bottom: 22px;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    .brand {
        -webkit-box-flex: 0;
        -ms-flex: 0 1 auto;
        flex: 0 1 auto;
    }
    .menu-btn {
        display: none;
    }
    .main-nav {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        width: auto;
        margin-left: auto;
        padding-top: 0;
        max-height: none;
        overflow: visible;
    }
    .main-nav a {
        border-top: 0;
        padding: 2px;
        margin: 0 0 0 26px;
        font-size: 20px;
    }
    .header-right {
        margin-left: 18px;
        padding-left: 0;
    }
    .lang-bar {
        margin-left: 0;
    }
    .hero {
        min-height: 640px;
    }
    .hero-text {
        -ms-flex: 1 1 52%;
        flex: 1 1 52%;
        padding: 80px 56px 80px max(1rem, calc((100% - 1200px) / 2 + 1rem));
    }
    .hero-photo {
        -ms-flex: 1 1 48%;
        flex: 1 1 48%;
        height: auto;
        min-height: 640px;
    }
    .about-row {
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    .about-text {
        -ms-flex: 1 1 50%;
        flex: 1 1 50%;
        padding-right: 56px;
    }
    .about-photo {
        -ms-flex: 1 1 50%;
        flex: 1 1 50%;
        height: 420px;
        margin-top: 0;
    }
    .contact-row {
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    .contact-info {
        -ms-flex: 1 1 38%;
        flex: 1 1 38%;
        padding-right: 56px;
        margin-bottom: 0;
    }
    .contact-form-wrap {
        -ms-flex: 1 1 62%;
        flex: 1 1 62%;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 0;
    }
    .hero-text {
        padding-top: 32px;
        padding-bottom: 36px;
    }
    .hero-photo {
        min-height: 0;
        height: 240px;
    }
    .main-nav {
        max-height: 70vh;
    }
}

@media (orientation: landscape) and (max-height: 500px) and (min-width: 1024px) {
    .hero-photo {
        height: auto;
    }
}

@media (hover: hover) and (pointer: fine) {
    .lang-link:hover .lang-circle {
        opacity: 1;
    }
    .main-nav a:hover {
        color: var(--carmine);
    }
    .btn-white:hover {
        background: var(--cream);
        border-color: var(--cream);
    }
    .btn-outline:hover {
        background: #FFFFFF;
        color: var(--carmine);
    }
    .btn-carmine:hover,
    .form-actions .submit-btn:hover {
        background: var(--carmine-dark);
        border-color: var(--carmine-dark);
    }
    .contact-mail:hover {
        border-bottom-color: var(--cream);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lang-circle,
    .btn,
    .menu-bars span,
    .form-actions .submit-btn {
        -webkit-transition: none;
        transition: none;
    }
}
