html, body {
    min-height: 100%;
    overflow-x: hidden
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1e2846;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #182038;
    top: 0;
    z-index: 1000;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
}

.header-logo {
    max-height: 50px;
    width: auto;    
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header-nav li {
    position: relative;
    padding: 0 20px;
}

.header-nav li:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 2px;
    background: rgba(255, 255, 255, 0.35);
}

.header-nav a {
    display: block;
    padding: 15px 20px;
    color: #fdc915;
    text-decoration: none;
    font-size: 18px;
}

.hero {
    max-width: none;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
    align-self: stretch; 
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.45);
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #1e2846;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;    
}

.content {
    width: min(1100px, 100%); 
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
    box-sizing: border-box
}

.contacts-page {
    flex: 1;                       
    display: flex;
    align-items: center;          
    justify-content: center;       
}

.about-page {
    flex: 1;                         
    display: flex;
    flex-direction: column;
    justify-content: center;         
}

.contacts-page section {
    margin-bottom: 100px;
}

.contacts-page section:last-child {
    margin-bottom: 0;
}

.products-page {
    flex: 1;
    display: flex;
    align-items: center;     
    justify-content: center; 
    padding: 30px 0 40px;     
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
    row-gap: 100px;
}

.contacts-grid section {
    margin-bottom: 0;
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 400px));
    gap: 40px;
    justify-content: center;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.product-card {
    position: relative;
    width: 400px;
    height: 500px;
    overflow: hidden;
    text-decoration: none;
    color: #fdc915;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.product-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 25px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.05)
    );
}

.product-overlay h3 {
    margin: 0;
    font-size: 22px;
    text-align: center;
    letter-spacing: 0.5px;
}

.product-page {
    flex: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.product-page .content {
    padding: 30px 20px 10px;
}

.product-list {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.product-list ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.product-list li {
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    margin-bottom: 10px;
}

footer {
    background: #182038;
    color: #fdc915;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    margin-top: auto;
}

.p-spaced{
    margin: 0 0 50px;
}


a {
    color: #fdc915;        
    text-decoration: none;
}

a:hover:not(.text-button) {
    color: #f3d463;     
}

.logo-link {
    display: inline-block;
}

.logo-link img {
    display: block;
}

.logo-link:hover {
    text-decoration: none;
}
.logo-link img:hover {
    opacity: 0.85;
}

.fade-in {
    opacity: 0;
    transition: opacity 700ms ease;
    text-align: center;
}

.fade-in h2 {
    color: #fdc915;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 8px;
}

.fade-in.is-visible {
    opacity: 1;
}

.text-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #fdc915;
    color: #182038;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.text-button:hover {
    background-color: #f3d463;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.text-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.spacing100 {
    height: 100px;
}

.header-nav a,
.text-button {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
.header-row {
    padding: 12px 18px;
}

.content {
    padding: 30px 16px; 
}

.product-list {
    margin: 20px auto 40px;
    padding: 0 16px;
}
}

/* <= 700px: stack header, make nav wrap, scale typography, collapse grids */
@media (max-width: 700px) {
/* Header stacks nicely */
.header-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.header-logo {
    max-height: 44px;
}

/* Nav wraps instead of overflowing */
.header-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
}

/* Remove separator lines when wrapping (they look wrong on multiple rows) */
.header-nav li {
    padding: 0;
}
.header-nav li:not(:first-child)::before {
    display: none;
}

.header-nav a {
    padding: 10px 12px;
    font-size: 16px;
}

/* Hero should not try to be "flex:1" tall on mobile; give it a sensible height */
.hero {
    flex: 0;
    height: 42vh;          /* adjust if you want taller/shorter */
    min-height: 240px;
}

/* Your fade-in headline and spacing */
.fade-in h2 {
    font-size: 26px;
    letter-spacing: 3px;
    padding: 0 12px;
}

.spacing100 {
    height: 50px;
}

/* Buttons scale better */
.text-button {
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 18px;
}

/* Products grid: single column on phone */
.products-page {
    padding-top: 30px;
    align-items: flex-start;
    padding: 20px 0 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
    gap: 40px;
    justify-content: center;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

.product-card {
    width: 100%;
    max-width: 400px;
    height: 500px;
}

.product-overlay h3 {
    font-size: 18px;
}

/* Product list items */
.product-list li {
    padding: 12px;
}

footer {
    font-size: 13px;
    padding: 14px;
}
}

/* <= 420px: extra small phones */
@media (max-width: 420px) {
.hero {
    height: 38vh;
    min-height: 210px;
}

.fade-in h2 {
    font-size: 22px;
    letter-spacing: 2px;
}

.header-nav a {
    font-size: 15px;
}

.product-card {
    height: 380px;
}
}











@media (max-width: 700px) {
.header-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

.header-logo {
    max-height: 44px;
}

.header-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
}

/* separators look wrong once nav wraps */
.header-nav li {
    padding: 0;
}
.header-nav li:not(:first-child)::before {
    display: none;  
}

.header-nav a {
    padding: 10px 12px;
    font-size: 16px;
}
}

@media (max-width: 700px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        justify-items: center;
        padding: 0 16px;
    }

    .product-card {
        width: min(420px, 92vw);
        height: 380px;
    }
}


@media (max-width: 700px) {
    .products-page {
        align-items: flex-start;
        padding-top: 18px;  /* or 24px if you want more */
        padding-bottom: 40px;
    }
}

.product-overlay h3 {
    font-size: 18px;
}


/* ---------- Responsive text / spacing ---------- */
@media (max-width: 700px) {
.content {
    padding: 30px 16px;
}

.product-list {
    margin: 15px auto 40px;
    padding: 0 16px;
}
}

@media (max-width: 700px) {
.about-page {
    justify-content: flex-start;
}
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        row-gap: 60px;
    }
}
