/* Reset i podstawowe style */
:root {
    --border-radius: 20px;
    --input-radius: 13px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;

    /* background-color: #fbdaba */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    padding: 10px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.05);
}

.lang-btn {
    border: none;
    background: transparent;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.lang-btn--active {
    background-color: #000;
    color: #fff;
}

.logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #000;
    letter-spacing: 1px;
}

/* Main content */
.main {
    margin-top: var(--header-offset, 80px);
}

/* Hero section */
.hero {
    padding: 80px 0;
    text-align: left;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 77px;
    font-weight: 1000;
    color: #000;
    line-height: 1.2;
    max-width: 100%;
}

/* Sections */
section {
    padding: 80px 0 0 0;
}

/* About section */
.about {
    background: #fff;
}

.about-content {
    display: flex;
    gap: 80px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-visual,
.services-visual,
.container-visual {
    flex: 1;
    position: relative;
    height: auto;
}

.about-text p {
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-visual {
    position: relative;
    height: auto;
}

.visual-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    width: 100%;
    aspect-ratio: 1/1;
}

.visual-box {
    position: absolute;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.visual-box.art {
    background: #000;
    width: 180px;
    height: 120px;
    top: 50px;
    left: 50px;
    z-index: 1;
}

.visual-box.code {
    background: #D0D8F0;
    width: 160px;
    height: 100px;
    top: 20px;
    right: 30px;
    z-index: 2;
}

.visual-box.design {
    background: #B8C5E8;
    width: 140px;
    height: 80px;
    bottom: 40px;
    left: 80px;
    z-index: 3;
}

/* Services section */
.services {
    background: #fff;
}

.services-content {
    display: flex;
    gap: 80px;
    align-items: center;
}

.services-text {
    flex: 1;
    text-align: left;
}

.services-text p {
    font-size: 16px;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.6;
}

.services-visual {
    position: relative;
    height: auto;
}

.visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
    transform-origin: center;
    transform: scale(1);
}

.visual-img:hover {
    transform: scale(1.05);
}

/* Edge animations scaling */
.EDGE-719236889,
.anima2 {
    width: 100% !important;
    height: 100% !important;
    transform: scale(1);
    transform-origin: center;
}

/* Ensure animations fill their containers */
.visual-image {
    position: relative;
    overflow: hidden;
}

/* Font face for Bebas Neue */
@font-face {
    font-family: 'BebasNeue';
    src: url('../EA/BebasNeue-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Logo background */
.logo-bg {
    background-image: url('../cynamon-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 1/1;
    width: 130px;
    height: auto;
}

/* Footer logo background */
.footer-logo-bg {
    background-image: url('../cynamon-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: 1/1;
    width: 100px;
    height: auto;
}



/* Contact section */
.contact {
    /* background: #D0D8F0 */
    padding: 50px 0px 50px 0px;
    margin-top: 30px;
}

.contact-content {
    background-color: #fbdaba;
    padding: 100px 60px;
    border-radius: var(--border-radius);
}

.txt-header {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    line-height: 44px;
    font-weight: 700;
    color: #000;
    margin-bottom: 40px;
    text-align: left;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
}

.contact-layout-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    color: #000;
    font-size: 16px;
    line-height: 1.8;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: flex-start;
    justify-content: center;
}

.contact-info-main {
    color: #000;
    font-size: 16px;
    line-height: 1.8;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: flex-start;
    justify-content: center;
}

.contact-info p {
    font-weight: 500;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: none;
    border-radius: var(--input-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    background: #fff;
    color: #000;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.submit-button {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: var(--input-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
    width: 100%;
}

.submit-button:hover {
    background: #333;
}

/* Footer */
.footer {
    /* background: #000 */
    color: black;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    flex: 1;
}

.footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-link {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.logo-img {
    height: 60px;
    width: auto;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.logo a,
.footer-logo a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo a:hover,
.footer-logo a:hover {
    opacity: 0.8;
}

/* Regulamin styles */
.contact-info h2.txt-header {
    margin: 40px 0 20px 0;
}

.contact-info h2.txt-header:first-child {
    margin-top: 0;
}

.contact-info ul {
    margin: 15px 0;
    padding-left: 20px;
}

.contact-info li {
    margin: 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.contact-info p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.contact-info p:has(strong) {
    margin: 5px 0;
}

/* Usunięcie spacji z paragrafów na stronie głównej */
.about-text p, .services-text p {
    margin: 0 0 15px 0;
}

.about-text p:last-child, .services-text p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: #333;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-layout-main {
        display: grid;
        grid-template-columns: 1fr;
        gap: 60px;
        align-items: start;
    }

    .container {
        padding: 0 20px;
    }

    .header-inner {
        gap: 12px;
    }

    .language-switcher {
        gap: 4px;
    }

    .lang-btn {
        font-size: 12px;
        padding: 6px 10px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .about-content,
    .services-content {
        flex-direction: column;
        gap: 40px;
    }

    .services-content {
        flex-direction: column-reverse;
    }

    .about-visual,
    .services-visual,
    .container-visual {
        height: auto;
        width: 100%;
    }

    .visual-box {
        transform: scale(0.8);
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
    }

    .logo-img {
        height: 50px;
    }

    .footer-logo-img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }

    .language-switcher {
        width: auto;
        justify-content: center;
    }

    .lang-btn {
        flex: unset;
        text-align: center;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-content h2 {
        font-size: 44px;
        line-height: 44px;
    }

    section {
        padding: 40px 0;
    }

    .txt-header {
        font-size: 24px;
    }

    .visual-box {
        transform: scale(0.6);
    }

    .contact-content {
        padding: 20px 20px;
    }

    .logo-img {
        height: 40px;
    }

    .footer-logo-img {
        height: 24px;
    }
}