/*
Theme Name: SPA
Author: MAD.by
Author URI: https://mad.by/
Description: Вёрстка и натяжка шаблона - MAD.by. Для связи: <a href="https://t.me/d9d9_Sun">d9d9_Sun</a>
Version: 0.1
*/

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-locale: auto;
    white-space: normal;
}

img {
    max-width: 100%;
    height: auto;
}

html {
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: sans-serif;
}

.container {
    max-width: 1920px;
    padding: 0 120px;
    margin: auto;
}

p {
    margin-bottom: 18px;
}

header .top-line {
    display: flex;
    align-items: center;
    height: 32px;
    background-color: #192b4b;
}

header .top-line .container {
    width: 100%;
}

header .top-line__phones {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

header .top-line__phones a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
}

header .top-line__phones a::before {
    content: '';
    background: url('./icons/icon-phone.svg') no-repeat;
    background-size: 18px;
    min-width: 18px;
    max-width: 18px;
    height: 18px;
}

.header__main {
    background-color: #f4f4f4;
    height: 60px;
}

.header__main .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
}

.logo img {
    width: 60px;
    height: 60px;
}

nav #menu-main {
    display: flex;
    list-style: none;
    gap: 24px;
}

nav #menu-main a {
    text-decoration: none;
    color: #192b4b;
    text-transform: uppercase;
}

footer {
    background-color: #192b4b;
    padding: 24px 0;
    color: #fff;
}

footer .container {
    display: flex;
    gap: 32px;
}

footer .container > div:first-child,
footer .container > div:last-child {
    flex: 1;
}

footer .container > div:nth-child(2) {
    flex: 2;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer .logo {
    margin-bottom: 24px;
}

footer .s-networks {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

footer .s-networks svg {
    height: 35px;
    color: #fff;
}

footer .copyrights {
    font-size: 12px;
}

footer .footer-two {
    display: flex;
    gap: 48px;
    border-left: 1px solid #fff;
    padding-left: 24px;
}

footer .footer-two > * {
    flex: 1;
}

footer .footer-two ul {
    list-style: none;
    padding: 0;
}

footer .footer-two ul li::before {
    content: "»";
    margin-right: 8px;
    color: #fff;
    font-size: 16px;
}

footer .footer-two ul li:not(:last-child) {
    margin-bottom: 8px;
}

footer .footer-three {
    border-left: 1px solid #fff;
    padding-left: 24px;
}

footer .footer__phones {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #fff;
}

footer .footer__phones a {
    display: flex;
    gap: 8px;
    align-items: center;
}

footer .footer-three svg {
    color: #fff;
    max-width: 24px;
    min-width: 24px;
    height: 24px;
}

footer .footer__addresses {
    padding: 12px 0;
    border-bottom: 1px solid #fff;
}

.footer__address {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__address:first-child {
    margin-bottom: 24px;
}

footer .footer__email {
    padding-top: 12px;
}

footer .footer__email a {
    display: flex;
    gap: 8px;
    align-items: center;
}

.homepage__hero {
    width: 100%;
    max-height: 75vh;
    object-fit: cover;
}

h1 {
    color: #2b6684;
    text-align: center;
    margin: 48px 0;
}

.get-quote {
    border: 1px solid #192b4b;
    border-radius: 5px;
    display: block;
    margin: auto;
    padding: 10px 25px;
    text-align: center;
    transition: all .3s;
    width: fit-content;
    text-decoration: none;
    background: linear-gradient(180deg, #192b4b, #141b2d);
    color: #fff;
    margin-bottom: 12px;
}

.get-quote:hover {
    background-color: #2b6684;
    border: 1px solid #2b6684;
}

.brand-pools {
    background-color: #f4f4f4;
    padding: 64px 0;
}

h2 {
    color: #00749d;
    font-weight: 600;
    text-align: center;
    font-size: 28px;
    margin-bottom: 32px;
}

.brand-pools__grid {
    column-gap: 24px;
    columns: 350px;
}

.brand-card {
    position: relative;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    margin-bottom: 24px;
}

.brand-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.brand-card::after {
    content: "";
    position: absolute;
    inset: 50% 0 0 0;
    background: linear-gradient(to bottom, transparent, rgba(0,92,140,.9));
}

.brand-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    z-index: 1;
}

.pool-types {
    padding: 64px 0;
}

.pool-types__grid {
    column-gap: 24px;
    columns: 350px;
}

.pool-type__card {
    position: relative;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    margin-bottom: 24px;
}

.pool-type__card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.pool-type__card::after {
    content: "";
    position: absolute;
    inset: 50% 0 0 0;
    background: linear-gradient(to bottom, transparent, rgba(0,92,140,.9));
}

.pool-type__card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
    color: #fff;
    font-size: 28px;
    font-weight: 500;
    z-index: 1;
}

.popular-products {
    background-color: #f4f4f4;
    padding: 64px 0;
}

.homepage-catalog {
    padding: 64px 0;
}

.homepage-catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}