@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: #2f2f2f;
    background-image: url('../images/background.png');
    font-family: 'Raleway', system-ui, -apple-system, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-container {
    width: 100%;
    max-width: 1280px;
    margin: 2rem;
    padding: 1rem;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.square-img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.text-block {
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 5.5rem);
	line-height: 0.9;
    color: #f7ba0b;
}

/* --- Обеспечение ширины инпута = рисунок + gap + надпись --- */
.compact-group {
    width: fit-content;          /* ширина ровно под содержимое .content */
    margin-left: auto;
    margin-right: auto;
}

/* Стили для блока label + input */
.input-field {
    margin-top: 3rem;
    width: 100%;                 /* растягивается на всю ширину .compact-group */
}

/* Подпись (слева над инпутом) */
.input-label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #f7ba0b;
    margin-bottom: 0.6rem;
}

/* Сам инпут – скругление, рамка, стилизация */
.input-control {
    width: 100%;
    padding: 0.85rem 1.3rem;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    background-color: rgba(25, 25, 25, 0.7);
    border: 1.5px solid #5a5a5a;
    border-radius: 48px;          /* сильное скругление */
    color: #f5f5f5;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(3px);
}

.input-control:focus {
    border-color: #f7ba0b;
    background-color: rgba(35, 35, 35, 0.9);
    box-shadow: 0 0 0 3px rgba(159, 199, 229, 0.25);
}

@media (min-width: 1024px) {
    .square-pic {
        width: 220px;
        height: 220px;
    }
    .content {
        //gap: 5rem;
    }
}

@media (max-width: 640px) {
    .wrapper {
        margin: 1rem;
    }
    .content {
        //gap: 2rem;
    }
    .square-pic {
        width: 140px;
        height: 140px;
    }
    .raleway-heading {
        text-align: center;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    body {
        background-image: url('../images/background_2x.png');
    }
}